Last Updated on : 2023-06-20 15:37:51download
Associated user authorized login
POST: /v1.0/iot-01/associated-users/actions/authorized-login
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
country_code | String | false | Country Code | |
username | String | false | Username | |
password | String | false | Password | |
schema | String | false | App ID |
Parameter name | Type | Description |
---|---|---|
result | TokenRes |
Description of result
Parameter name | Type | Description |
---|---|---|
access_token | String | Access Token |
expire_time | Integer | Valid time, unit: seconds |
refresh_token | String | Refresh Token |
uid | String | Tuya User ID |
POST: /v1.0/iot-01/associated-users/actions/authorized-login
{
"username": "188xxxx22",
"password": "9cbxxxxxxx9a0",
"country_code": 86,
"schema": "tuyaSmart"
}
{
"result": {
"expire_time": 7200,
"access_token": "48643baf0xxxxx9f8efa",
"refresh_token": "656adfccxxxxfe43e91bea",
"uid": "ay15xxxxxxx8Ot"
},
"t": 1621909749209,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback