强制账号退出登录
POST
/im/v2/accounts/{account_id}/actions/kick
请求参数
Path 参数
account_id
string
必需
Header 参数
AppKey
string
必需
默认值:
{{AppKey}}
X-custom-traceid
string
可选
默认值:
{% mock 'uuid' %}
Nonce
string
必需
默认值:
{{Nonce}}
CurTime
string
必需
默认值:
{{CurTime}}
CheckSum
string
必需
默认值:
{{CheckSum}}
Body 参数application/json
type
integer
类型
device_id_list
array[string]
必需
kick_notify_extension
string
通知扩展字段
示例
{
"type": 0,
"device_id_list": [
"string"
],
"kick_notify_extension": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.yunxinapi.com/im/v2/accounts//actions/kick' \
--header 'AppKey;' \
--header 'X-custom-traceid: {% mock '\''uuid'\'' %}' \
--header 'Nonce;' \
--header 'CurTime;' \
--header 'CheckSum;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
success_list
array [object {4}]
成功列表
failed_list
object
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"success_list": [
{
"device_id": "string",
"login_time": 0,
"client_type": 0,
"consid": "string"
}
],
"failed_list": {
"device_id": "string",
"error_code": 0,
"error_msg": "string"
}
}
}
🟢200成功
🟢200请求参数错误
🟢200服务器错误
修改于 2025-02-10 07:36:27