API Overview
Message Callbacks
Status Codes
Overview
Checks whether the QR code has been scanned.
Request
Authentication: Add authentication headers to the request. See Authentication
Method:
POST
Rate limit:
100 requests/second
Endpoint: https://API domain/jim/qrcode/check
Content-Type:
application/json
Request parameters
| Parameter | Data type | Required | Description | |
|---|---|---|---|---|
| id | string | Yes | QR code ID to check. We recommend polling every three seconds; after a successful scan, sign-in information is returned. |
Request example
POST /jim/qrcode/check HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json
{
"id":"xxxxxxx"
}
Response example
{
"code":0,
"msg":"sucess",
"data":{
"user_id":"userid1",
"authorization":"xxxxxxxxx",
"nickname":"user1",
"avatar":"xxxxxxxx",
"status":0,
"im_token":"xxxxxxxxx"
}
}
Response codes
| Response codes | Description | |
|---|---|---|
| 17006 | Not scanned yet; continue checking. | |
| 17007 | QR code expired |