WorkPro Manual

添加群成员

[Api Test]

Url

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

Method

POST

Request Headers

Name 必选 Type Description
Content-Type true string application/json; charset=UTF-8
authen true string Authen 什么是认证码
appid true string AppID 什么是接入ID
timestamp true string Timestamp
uid true string UID
lang true string Language zh-cn,en-us

Request Body

Name 必选 Type Description
group_id true string 群组ID
user_id true string 操作用户ID
members false json 群成员 示例:["user_id1", "user_id2"]

Tip

members 支持格式1 ["uid1","uid2"] ,格式二 [{"user_id":"uid1","role":1,"nickname":"uname"}]

Debug Tool

Test

Return

            {"status":1,"code":0,"msg":"","data":[{"gid":"user_id1","account":"account1","name":"用户1","nickname":"","py_first":"","avatar":"","role":0},{"gid":"user_id2","account":"account2","name":"用户2","nickname":"","py_first":"","avatar":"","role":0}]}