accessToken - Get Administrator Token - Imou Open Platform
accessToken: Get the administrator token
Function details
Obtain the accessToken according to the administrator account appId and appSecret. The appId and appSecret can be found in the console-my application-application information.
Note: The obtained accessToken is valid for 3 days. Please obtain it again when it is about to expire or the interface error TK1002 is reported. Each accessToken has an independent 3-day life cycle. Please do not call frequently to avoid occupying too many interface calls.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/accessToken
request format
Please refer to the Development Specification for the API request method and some authentication parameters such as sign calculation method
Incoming parameter description
No parameters are passed in, and the params value can be an empty map collection
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"b7e5bbcc6cc07941725d9ad318883d8e",
"time":1599013514,
"nonce":"fbf19fc6-17a1-4f73-a967-75eadbc805a2"
},
"id":"98a7a257-c4e4-4db3-a2d3-d97a3836b87c",
"params":{
}
}
Return data field description
| Field name | Field type | Field description |
|---|---|---|
| accessToken | String | Administrator account accessToken |
| expireTime | Long | The expiration time of the administrator account accessToken, in seconds |
Sample output
{
"result":{
"msg":"Successful operation.",
"code":"0",
"data":{
"expireTime":259176,
"accessToken":"At_00006ac6e32d123141238f60147de7ec"
}
},
"id":"98a7a257-c4e4-4db3-a2d3-d97a3836b87c"
}
