Service Agreement

Obtain Authorization(Post)

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

Refresh Authorization(Get)

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

Service Agreement

Obtain Authorization(Post)

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

Refresh Authorization(Get)

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