WorkPro 手册

用戶群组列表

[API接口调用测试]

接口地址

[接口服务器地址]/api/groups/list.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

名称 必选 类型 说明
user_id true string 用户ID
versions false json 本地群组版本信息 示例:[{"group_id":"c25aab2e544711e98f6188d7f697be9a","group_ver":"1514736000"},{...}]
page false json 当前页 默认是1,-1表示不分页
page_size false json 分页条数 默认是20

调用样例及调试工具

测试接口

返回结果(成功)

            {"status":1,"code":0,"msg":"","data":{"list":[{"gid":"c25aab2e544711e98f6188d7f697be9a","name":"测试群组1","type":0,"description":"","avatar":"","py_first":"csqz1","user_limit":1000,"user_count":7,"blocks_count":0,"is_public":1,"is_request":1,"invite_type":1,"is_need_confirm":0,"status":1,"owner":"user_id1","create_time":1514736000,"update_time":0,"user_ver":"1514736000","group_ver":"1514736000","is_mute":0,"mute_expire":0},{"gid":"b9ea0ef854f611e9961088d7f697be9a","name":"测试群组2","type":0,"description":"","avatar":"","py_first":"csqz2","user_limit":1000,"user_count":3,"blocks_count":0,"is_public":1,"is_request":1,"invite_type":1,"is_need_confirm":0,"status":1,"owner":"user_id1","create_time":1514736000,"update_time":0,"user_ver":"1514736000","group_ver":"1514736000","is_mute":0,"mute_expire":0}],"remove":["411e59847ec25aab2f6188d7f697be9a"]}}