- 基础API
- 登录模块
- 联系人模块
- 群模块
- 消息模块
- 标签模块
- 个人模块
- 收藏夹模块
- 账号管理
获取群/好友简要信息
POST
/contacts/getBriefInfo
请求参数
Header 参数
X-GEWE-TOKEN
string
必需
示例值:
{{gewe-token}}
Body 参数application/json
appId
string
设备ID
wxids
array[string]
好友的wxid
>= 1 items<= 100 items
示例
{
"appId": "{{appid}}",
"wxids": [
"wxid_phyyedw9xap22"
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/contacts/getBriefInfo' \
--header 'X-GEWE-TOKEN: {{gewe-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"appId": "{{appid}}",
"wxids": [
"wxid_phyyedw9xap22"
]
}'
返回响应
🟢200成功
application/json
Body
ret
integer
必需
msg
string
必需
data
array [object {20}]
必需
userName
string
可选
nickName
string
可选
pyInitial
string
可选
quanPin
string
可选
sex
integer
可选
remark
string
可选
remarkPyInitial
string
可选
remarkQuanPin
string
可选
signature
null
可选
alias
string
可选
snsBgImg
null
可选
country
string
可选
bigHeadImgUrl
string
可选
smallHeadImgUrl
string
可选
description
null
可选
cardImgUrl
null
可选
labelList
string
可选
province
string
可选
city
string
可选
phoneNumList
null
可选
示例
{
"ret": 200,
"msg": "获取联系人信息成功",
"data": [
{
"userName": "wxid_phyyedw9xap22",
"nickName": "Ashley",
"pyInitial": "ASHLEY",
"quanPin": "Ashley",
"sex": 2,
"remark": "",
"remarkPyInitial": "",
"remarkQuanPin": "",
"signature": null,
"alias": "zero-one_200906",
"snsBgImg": null,
"country": "AD",
"bigHeadImgUrl": "https://wx.qlogo.cn/mmhead/ver_1/buiaXybHTBK3BuGr1edN72zBDermWVFJ7YC8Jib2RcCSdiauAtZcPgUQpdhE9KY5NsumDAWD16fsg3A6OKuhdEr97VAHdTGgk6R1Eibuj7ZNwJ4/0",
"smallHeadImgUrl": "https://wx.qlogo.cn/mmhead/ver_1/buiaXybHTBK3BuGr1edN72zBDermWVFJ7YC8Jib2RcCSdiauAtZcPgUQpdhE9KY5NsumDAWD16fsg3A6OKuhdEr97VAHdTGgk6R1Eibuj7ZNwJ4/132",
"description": null,
"cardImgUrl": null,
"labelList": "",
"province": "",
"city": "",
"phoneNumList": null
}
]
}
修改于 2024-07-23 06:42:10