QR Login Get Token
This API helps the viewing app or TV app check in with the server (via polling the backend). When the user scan a QR code using the QR code scanner on their phone, they are sent to a web page to log in. While the user is logging in on the web, the viewing or TV app keeps asking the server for an update. Once the user logs in, the server sends a JWT token to the viewing app.
The authorization header must carry the API key that was provided during the application registration.
| Header |
Value |
| Authorization |
Bearer api_key |
Endpoint
POST v2/watch/auth/login/qr/get-token
Request Body
{
"login_code": "ABC90xx",
"udid": "AE74xx"
}
| Parameter |
Type |
Requirement |
Description |
login_code |
String |
Required |
A unique login code generated by Indee. |
udid |
String |
Required |
The unique device identifier. |
Response Body
{
"token": "<JWT access token>",
"refresh_token": "<JWT refresh token>"
}
| Field |
Type |
Description |
token |
String |
The JWT access token that can be used in subsequent API calls. |
refresh_token |
String |
The refresh token that can be used in subsequent API calls. |