Documentation
¶
Overview ¶
Package user_group 用户群组
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupList ¶
获取用户所在的群列表
获取用户所在的群列表。
**权限说明** :应用需要“读取群信息”权限;
See: https://open.feishu.cn/document/ukTMukTMukTM/uQzMwUjL0MDM14CNzATN
GET https://open.feishu.cn/open-apis/user/v4/group_list?page_size=2&page_token=6592161138799017988
Example ¶
package main
import (
"fmt"
"net/url"
"github.com/ylck/feishu"
"github.com/ylck/feishu/apis/user_group"
)
func main() {
var ctx *feishu.App
params := url.Values{}
resp, err := user_group.GroupList(ctx, params)
fmt.Println(resp, err)
}
func Members ¶
获取群成员列表
如果用户在群中,则返回该群的成员列表。
**权限说明** :应用需要“读取群信息”权限;
See: https://open.feishu.cn/document/ukTMukTMukTM/uUzMwUjL1MDM14SNzATN
Example ¶
package main
import (
"fmt"
"net/url"
"github.com/ylck/feishu"
"github.com/ylck/feishu/apis/user_group"
)
func main() {
var ctx *feishu.App
params := url.Values{}
resp, err := user_group.Members(ctx, params)
fmt.Println(resp, err)
}
func Search ¶
搜索用户所在的群列表
搜索用户所在的群列表。
**权限说明** :应用需要“读取群信息”权限;
See: https://open.feishu.cn/document/ukTMukTMukTM/uUTOyUjL1kjM14SN5ITN
GET https://open.feishu.cn/open-apis/chat/v4/search?page_size=10&page_token=24&query=rd
Example ¶
package main
import (
"fmt"
"net/url"
"github.com/ylck/feishu"
"github.com/ylck/feishu/apis/user_group"
)
func main() {
var ctx *feishu.App
params := url.Values{}
resp, err := user_group.Search(ctx, params)
fmt.Println(resp, err)
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.