Skip to main content

get_subscribe_users_status

Description

  • Retrieves the online status of users subscribed by the specified user.

Request Method

  • POST

Request URL

  • {API_ADDRESS}/user/get_subscribe_users_status
Header NameExample ValueRequiredTypeDescription
operationID1646445464564RequiredstringUsed for global traceability, suggested as a unique timestamp per request
tokeneyJhbxxxx3XsRequiredstringAdmin token

Request Parameters Example

{
"userID": "9609746682"
}
Field NameRequiredTypeDescription
userIDRequiredstringID of the user to query

Success Response Example

{
"errCode": 0,
"errMsg": "",
"errDlt": "",
"data": {
"statusList": [
{
"userID": "9168684795",
"status": 0,
"platformIDs": null
}
]
}
}

Success Response Parameter Description

ParameterTypeDescription
errCodeintError code, 0 indicates success
errMsgstringBrief error message, empty if successful
errDltstringDetailed error information, empty if successful
dataobjectGeneral data object, structure described below
statusListarrayList of subscribed users' online statuses
statusList.userIDstringUser ID
statusList.statusintOnline status: 0 for offline, 1 for online
statusList.platformIDsarrayList of platform types on which the user is logged in; values range from 1 to 9

Failure Response Example

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

Failure Response Parameter Description

ParameterTypeDescription
errCodeintError code; refer to global error code documentation
errMsgstringBrief error message
errDltstringDetailed error information