Last Updated on : 2023-06-21 07:13:09
Based on the callback address provided by the business user, Tuya gets the information about a specified consumer through the ticket and authorizes the consumer to log in to the Tuya system.
POST: /v1.0/iot-01/{schema}/ticket/users
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
req | ThirdTicketLoginReq | false | The request for authorized login by ticket. |
Description of req
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
ticket | String | query | false | The third-party ticket. |
schema | String | uri | false | The schema of a specified app. |
Parameter name | Type | Description |
---|---|---|
result | UserOAuth2TokenVO | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
access_token | String | The access token. |
expire_time | Integer | The time when a token expires. |
refresh_token | String | The refresh token. |
uid | String | The user ID. |
POST: /v1.0/iot-01/{schema}/ticket/users
{
"ticket": "sajsxxxxxaksishh",
"schema": "xyxxxxxxxx281iu"
}
{
"expire_time": 3600,
"access_token": "oQnCsxxxxxx282jx",
"refresh_token": "wWuxdksxxxx28Uwn",
"uid": "ay28129xxxxxxx2821"
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback