WorkPro 手册

接口地址

[接口服务器地址]/api/groups/search.html

请求方法

POST

Request Headers

名称 必选 类型 说明
Content-Type true string application/json; charset=UTF-8
authen true string 认证码 什么是认证码
appid true string 接入ID 什么是接入ID
timestamp true string 时间戳
uid true string 当前帐号
lang true string 语言 zh-cn,en-us

Request Body

名称 必选 类型 说明
key true string 搜索关键词 目前支持:群组名模糊搜索
org_id false string 组织ID 搜索指定组织下的群组
page false json 当前页 默认是1,-1表示不分页
page_size false json 分页条数 默认是20

调用样例及调试工具

测试接口

返回结果(成功)

            {"status":1,"code":0,"msg":"","data":{"count":2,"page":1,"page_size":20,"list":[{"gid":"ead79ba2544711e98f7c88d7f697be9a","name":"测试群组1","type":0,"avatar":"","description":"","user_count":6,"user_limit":1000,"owner":"user_id1","is_request":1,"create_time":1514736000},{"gid":"f21ca2f4544711e996fa88d7f697be9a","name":"测试群组32","type":0,"avatar":"","description":"","user_count":6,"user_limit":1000,"owner":"user_id2","is_request":1,"create_time":1514736000}]}}