Skip to main content

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

ParameterData typeRequiredDescription
idstringYesQR 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 codesDescription
17006Not scanned yet; continue checking.
17007QR code expired