Name | version number | Date created | Last Update | Status |
---|---|---|---|---|
Get Token | 1.0 | 2021/12/30 | 2021/12/30 | Definition |
Description | ||||
Obtain authorization token through Appkey AppSecret | ||||
Request description | ||||
Request address | https://oauthapi.iot02.com/api/v1/user/login-app | |||
Head section | ||||
Name | Type | Length | Constraints | Description |
Body section | ||||
Name | Type | Length | Constraints | Description |
clientType | string | M | Fixed to: svr | |
appKey | string | M | User appKey | |
AppSccret | string | M | User AppSecret | |
AppSccretKey | string | M | User AppSecret | |
Response message parameter description | ||||
Name | Type | Length | Constraints | Description |
accesstoken | string | M | Valid for 1 hour | |
refreshToken | string | M | Refresh Token, and regenerate after refresh. | |
Response JSON data format | ||||
{ "success":true, "code":200, "message":"Succeeded", "data":{ "accesstoken":"JYMupfuiO9qttTdaxd8abkR-zq53iD72oJ0972U-0VZzhvBvq5suarxdCnB0S42Epk OPBok8Yx1m160ce_ kJ2nlNbh4T7g==", "refreshToken":"JYMf8kHulRmZ8mzG17sPdRhtAmNZKzvMdPyXKXu-EyUvQDQ7P9zsYQ9O4VYz8RGbh HseGY7hpXBTbCMtZ9wi1MoESMV8A==" }, "extras":null, "timestamp":1640856146002 } |
Name | version number | Date created | Last Update | Status |
---|---|---|---|---|
Refresh | 1.0 | 2021/08/03 | 2021/05/12 | Definition |
Description | ||||
Refresh Authorization via Authorization, refreshtoken | ||||
Request description | ||||
Request address | https://oauthapi.iot02.com/api/v1/user/refresh-token?refreshtoken={refres htoken} | |||
Head section | ||||
Name | Type | Length | Constraints | Description |
Authorization | string | M | Refer to 1.2 Authentication | |
Response message parameter description | ||||
Name | Type | Length | Constraints | Description |
accesstoken | string | M | Valid for 1 hour | |
refreshToken | string | M | Refresh Token, and regenerate after refresh. | |
Response JSON data format | ||||
{ "success":true, "code":200, "message":"Succeeded", "data":{ "accesstoken":"JYMgorxIK0z_-I1uqcQajr3gU-cdblBgUDu_uF26g V2eu2EmDQeDfJdYS8KKyBxNH8p1AUwbsEEVFZDrX20a7WHdqsewEg==", "refreshToken":"JYMf8kHulRmZ8mzG17sPdRhtAmNZKzvMdPyXKXu-Ey UvQDQ_7P9zsYQ9O4VYz8RGbhHseGY7hpXBTbCMtZ9wj1MoESMV8A==" }, "extras":null, "timestamp":1640857282280 } |
Name | version number | Date created | Last Update | Status |
---|---|---|---|---|
Get Token | 1.0 | 2021/12/30 | 2021/12/30 | Definition |
Description | ||||
Obtain authorization token through Appkey AppSecret | ||||
Request description | ||||
Request address | https://oauthapi.iot02.com/api/v1/user/login-app | |||
Head section | ||||
Name | Type | Length | Constraints | Description |
Body section | ||||
Name | Type | Length | Constraints | Description |
clientType | string | M | Fixed to: svr | |
appKey | string | M | User appKey | |
AppSccret | string | M | User AppSecret | |
AppSccretKey | string | M | User AppSecret | |
Response message parameter description | ||||
Name | Type | Length | Constraints | Description |
accesstoken | string | M | Valid for 1 hour | |
refreshToken | string | M | Refresh Token, and regenerate after refresh. | |
Response JSON data format | ||||
{ "success":true, "code":200, "message":"Succeeded", "data":{ "accesstoken":"JYMupfuiO9qttTdaxd8abkR-zq53iD72oJ0972U-0VZzhvBvq5suarxdCnB0S42Epk OPBok8Yx1m160ce_ kJ2nlNbh4T7g==", "refreshToken":"JYMf8kHulRmZ8mzG17sPdRhtAmNZKzvMdPyXKXu-EyUvQDQ7P9zsYQ9O4VYz8RGbh HseGY7hpXBTbCMtZ9wi1MoESMV8A==" }, "extras":null, "timestamp":1640856146002 } |
Name | version number | Date created | Last Update | Status |
---|---|---|---|---|
Refresh | 1.0 | 2021/08/03 | 2021/05/12 | Definition |
Description | ||||
Refresh Authorization via Authorization, refreshtoken | ||||
Request description | ||||
Request address | https://oauthapi.iot02.com/api/v1/user/refresh-token?refreshtoken={refres htoken} | |||
Head section | ||||
Name | Type | Length | Constraints | Description |
Authorization | string | M | Refer to 1.2 Authentication | |
Response message parameter description | ||||
Name | Type | Length | Constraints | Description |
accesstoken | string | M | Valid for 1 hour | |
refreshToken | string | M | Refresh Token, and regenerate after refresh. | |
Response JSON data format | ||||
{ "success":true, "code":200, "message":"Succeeded", "data":{ "accesstoken":"JYMgorxIK0z_-I1uqcQajr3gU-cdblBgUDu_uF26g V2eu2EmDQeDfJdYS8KKyBxNH8p1AUwbsEEVFZDrX20a7WHdqsewEg==", "refreshToken":"JYMf8kHulRmZ8mzG17sPdRhtAmNZKzvMdPyXKXu-Ey UvQDQ_7P9zsYQ9O4VYz8RGbhHseGY7hpXBTbCMtZ9wj1MoESMV8A==" }, "extras":null, "timestamp":1640857282280 } |