Skip to content

Remedios14/go-lark-project

Repository files navigation

go-lark-project

访问飞书项目

Install

go get github.com/Remedios14/go-lark-project

Usage

Example: create lark project client

  • with plugin id and plugin secret
cli := lark_project.New(WithPluginCredential("<PLUGIN_ID>", "<PLUGIN_SECRET>"))

Example: Query User Detail

cli := lark_project.New(WithPluginCredential("<PLUGIN_ID>", "<PLUGIN_SECRET>"))
resp, _, err := cli.User.QueryUserDetail(context.Background(), &lark_project.QueryUserDetailReq{
    Emails: []string{"<EMAIL>"},
})
if err != nil {
    panic(err)
}
for _, user := range resp.Data {
    fmt.Printf("user key: %s\n", user.UserKey)
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages