更新时间:2023-06-20 15:37:51下载pdf
本文介绍关联用户授权登录的 API。
关联用户授权登录
POST: /v1.0/iot-01/associated-users/actions/authorized-login
body
说明
参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
---|---|---|---|---|
country_code | String | true | 国家码 | |
username | String | true | 用户名 | |
password | String | true | 密码 | |
schema | String | true | App标识 |
参数名 | 类型 | 说明 |
---|---|---|
result | TokenRes |
result
说明
参数名 | 类型 | 说明 |
---|---|---|
access_token | String | 访问令牌 |
expire_time | Integer | 有效时间,单位:秒 |
refresh_token | String | 刷新令牌 |
uid | String | 涂鸦用户 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
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈