批量查询账号信息
GET
/im/v2/accounts
请求参数
Query 参数
account_ids
string
必需
Header 参数
AppKey
string
必需
默认值:
{{AppKey}}
X-custom-traceid
string
可选
默认值:
{% mock 'uuid' %}
Nonce
string
必需
默认值:
{{Nonce}}
CurTime
string
必需
默认值:
{{CurTime}}
CheckSum
string
必需
默认值:
{{CheckSum}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.yunxinapi.com/im/v2/accounts?account_ids' \
--header 'AppKey;' \
--header 'X-custom-traceid: {% mock '\''uuid'\'' %}' \
--header 'Nonce;' \
--header 'CurTime;' \
--header 'CheckSum;'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
msg
string
提示信息
data
object
返回的 JSON数据对象
success_list
array [object {2}]
必需
failed_list
array [object {3}]
必需
示例
{
"code": 200,
"msg": "success",
"data": {
"account_id": "123456",
"configuration": {
"enabled": false,
"p2p_chat_banned": false,
"team_chat_banned": false,
"chatroom_chat_banned": false,
"qchat_chat_banned": false,
"push_enabled_when_desktop_online": true
}
}
}
🟢200请求参数错误
🟢200服务器错误