user_group

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 user_group 用户群组

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupList

func GroupList(ctx *feishu.App, params url.Values) (resp []byte, err error)

获取用户所在的群列表

获取用户所在的群列表。

**权限说明** :应用需要“读取群信息”权限;

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)
}
Output:

func Members

func Members(ctx *feishu.App, params url.Values) (resp []byte, err error)

获取群成员列表

如果用户在群中,则返回该群的成员列表。

**权限说明** :应用需要“读取群信息”权限;

See: https://open.feishu.cn/document/ukTMukTMukTM/uUzMwUjL1MDM14SNzATN

GET https://open.feishu.cn/open-apis/chat/v4/members?chat_id=oc_92c3f700c2ae31369cefee459fb93870&page_token=0&page_size=3

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)
}
Output:

func Search(ctx *feishu.App, params url.Values) (resp []byte, err error)

搜索用户所在的群列表

搜索用户所在的群列表。

**权限说明** :应用需要“读取群信息”权限;

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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