获取群信息
POST
/gewe/v2/api/group/getChatroomInfo请求参数
Header 参数
X-GEWE-TOKEN
string
必需
示例值:
{{gewe-token}}
Body 参数application/json
appId
string
设备ID
chatroomId
string
群ID
示例
{
"appId": "{{appid}}",
"chatroomId": "34757816141@chatroom"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
ret
integer
必需
msg
string
必需
data
object
必需
chatroomId
string
群ID
nickName
string
群名称
pyInitial
string
群名称的拼音首字母
quanPin
string
群名称的全拼
sex
integer
必需
remark
string
群备注,仅自己可见
remarkPyInitial
string
群备注的拼音首字母
remarkQuanPin
string
群备注的全拼
chatRoomNotify
integer
群消息是否提醒
chatRoomOwner
string
群主的wxid
smallHeadImgUrl
string
群头像链接
memberList
array [object {7}]
群成员列表
示例
{
"ret": 200,
"msg": "操作成功",
"data": {
"chatroomId": "34757816141@chatroom",
"nickName": "GeWe test",
"pyInitial": "GEWETEST",
"quanPin": "GeWetest",
"sex": 0,
"remark": "GeWe test private",
"remarkPyInitial": "GEWETESTPRIVATE",
"remarkQuanPin": "GeWetestprivate",
"chatRoomNotify": 1,
"chatRoomOwner": "zhangchuan2288",
"smallHeadImgUrl": "https://wx.qlogo.cn/mmcrhead/PiajxSqBRaEJEIII6n6NUHudK1r5a29cMDlW0Ef7b1ibzksfrwIcRkTicPRoWm7Km3ZQIpq8xp65nD6yUm8BHxzqhV1ic1jQvvnv/0",
"memberList": [
{
"wxid": "zhangchuan2288",
"nickName": "朝夕。",
"inviterUserName": null,
"memberFlag": 1,
"displayName": null,
"bigHeadImgUrl": null,
"smallHeadImgUrl": null
},
{
"wxid": "wxid_phyyedw9xap22",
"nickName": "Ashley",
"inviterUserName": "zhangchuan2288",
"memberFlag": 1,
"displayName": null,
"bigHeadImgUrl": null,
"smallHeadImgUrl": null
},
{
"wxid": "wxid_0xsqb3o0tsvz22",
"nickName": "G",
"inviterUserName": "zhangchuan2288",
"memberFlag": 1,
"displayName": null,
"bigHeadImgUrl": null,
"smallHeadImgUrl": null
}
]
}
}
最后修改时间: 7 个月前