API for Querying Client Status
Last updated
Last updated
Please make sure you obtain x-ak
& x-sk
issued by Aethir.
This interface is used to query whether the client is online.
POST
Each x-ak
can make a request every 5 seconds.
x-ak
string
Yes
x-op-token
string
Yes
The request body is an array of clientId
, supporting a maximum of 100 IDs.
Possible responses and their corresponding meanings are:
HttpStatus 200
: Query successful; the query result is parsed in the HttpResponseBody
.
HttpStatus 401
: The client needs to regenerate the x-op-token
and retry the query.
clientId
string
Client ID
onLineState
int
1: Online, 0: Offline
HttpStatus 400
: The x-op-token
format is incorrect or exceeded.