Skip to main content

get_users_online_token_detail

Brief Description

  • This interface retrieves the token array list of the platforms on which the user is currently online.

Request Method

  • post

Request URL

  • http://x.x.x.x:10002/user/get_users_online_token_detail
Header NameExample ValueOptionalTypeDescription
operationID1646445464564RequiredstringoperationID for global link tracking
tokeneyJhbxxxx3XsRequiredstringAdministrator token

Request Parameter Example

{
"userIDs": [
"2621568666",
"2621568663"
]
}
Field NameOptionalTypeDescription
userIDsRequiredarrayArray of user IDs to query

Successful Response Example

{
"errCode": 0,
"errMsg": "",
"errDlt": "",
"data": [
{
"userID": "2621568666",
"status": "online",
"singlePlatformToken": [
{
"platform": "Web",
"total": 1,
"token": [
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiIyNjIxNTY4NjY2IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNjk1OTAyOTI1LCJuYmYiOjE2ODgxMjY2MjUsImlhdCI6MTY4ODEyNjkyNX0.ulWW0Fr9n0__1pT9qxWJw9ym8zwosveYYPyyLaUVkU4"
]
}
]
}
]
}

Explanation for Successful Response Parameters

Parameter NameTypeDescription
errCodeintError code, 0 means success
errMsgstringBrief error message, empty if no error
errDlterrDltDetailed error information, empty if no error
dataobjectGeneral data object, see structure below
userIDstringUser ID
statusstringOnline status, online/offline
singlePlatformTokenarrayToken collection for a single platform online
singlePlatformToken.platformstringOnline platform, 1->IOS, 2->Android, 3->Windows, 4->OSX, 5->Web, 5->MiniWeb, 7->Linux, 8->AndroidPad, 9->IPad
singlePlatformToken.totalstringTotal online count
singlePlatformToken.tokenarrayArray of tokens

Failed Response Example

{
"errCode": 1004,
"errMsg": "RecordNotFoundError",
"errDlt": ": [1004]RecordNotFoundError"
}

Explanation for Failed Response Parameters

Parameter NameTypeDescription
errCodeintError code, see global error code document
errMsgstringBrief error message
errDlterrDltDetailed error information