Third-party Login QR Code Retrieval
Function Description
Used for third-party login via QR code. The default QR code for login contains a fixed UUID. When dynamic QR code is enabled, you can use this interface to retrieve the QR code generated by the third party.
Request Details
Request Method: GET
Request URL: /login_qrcode
Parameter Format:Query String Parameters/ URL parameters
Request Parameters
| Field | Field Type | Field Description |
|---|---|---|
| value | String | User identification value |
| scene | String | Scene |
Request Parameter Example:
// 请求获取三方登录二维码
{
"value": "0c376c08-a879-4caa-8262-109eff12b4ae", // 当前二维码唯一标识
"scene": "meas-composition"
}
Response
{
"code": 0,
"message": "SUCCESS",
"result": {
"type": "qr-content",
"value": "这是二维码的内容.....",
"notice": "请使用微信扫码",
"logo_url":"https://www.sanygroup.com/img/index_modile_logo.png",
"invalid":10
}
}
Response Parameters
| Field | Field Type | Field Description |
|---|---|---|
| type | String | Image type, currently only supports qr-content which means the device will generate a QR code with the content specified in the value field |
| value | String | Content of the image in the specified format |
| notice | String | Text below the QR code (suggested to be within 20 characters) |
| logo_url | String | URL of the logo to be superimposed on the QR code (suggested size: 90*90 px) |
| invalid | Integer | Validity period of the QR code (in seconds, after reaching the specified time, a new QR code will be retrieved and displayed) |
Additional Notes
- In the
/third_userinterface, thescenevalue for this type isqr-third(only for U+ and subsequent devices, previously it wasqr). Thevaluefield should be consistent with thevaluefield in this interface.