platform

package
v1.0.0-beta.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package platform 云文档/platform

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func DocsMeta

func DocsMeta(ctx *feishu.App, payload []byte, accessToken string) (resp []byte, err error)

获取元数据

该接口用于根据 token 获取各类文件的元数据

See: https://open.feishu.cn/document/ugTM5UjL4ETO14COxkTN/uMjN3UjLzYzN14yM2cTN

POST https://open.feishu.cn/open-apis/suite/docs-api/meta

Example
package main

import (
	"fmt"

	"github.com/ylck/feishu"
	"github.com/ylck/feishu/apis/capabilities/document/platform"
)

func main() {
	var ctx *feishu.App

	payload := []byte("{}")
	accessToken := ""
	resp, err := platform.DocsMeta(ctx, payload, accessToken)

	fmt.Println(resp, err)
}
Output:

func SearchObject

func SearchObject(ctx *feishu.App, payload []byte, accessToken string) (resp []byte, err error)

文档搜索

该接口用于根据搜索条件进行文档搜索

See: https://open.feishu.cn/document/ugTM5UjL4ETO14COxkTN/ugDM4UjL4ADO14COwgTN

POST https://open.feishu.cn/open-apis/suite/docs-api/search/object

Example
package main

import (
	"fmt"

	"github.com/ylck/feishu"
	"github.com/ylck/feishu/apis/capabilities/document/platform"
)

func main() {
	var ctx *feishu.App

	payload := []byte("{}")
	accessToken := ""
	resp, err := platform.SearchObject(ctx, payload, accessToken)

	fmt.Println(resp, err)
}
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL