Getting Started
Official Site
Getting Started
Official Site
  • Document description
  • Read before you start

  • Light application development guide

  • Mobile application development guide

  • Cloud live development guide

  • Desktop application development guide

  • Third party development guide

  • Message push development guide

  • IoT things data model

  • HTTP interface

    • Development specification
    • API privacy policy
    • Postman interface simulation call
    • accessToken: Get administrator token
    • API request example
    • Account docking
    • Push configuration
    • Cloud storage service
    • Equipment management

    • Device configurat

    • Video equipment

    • Device message
    • Device live broadcast
    • Device lock access
  • Reference documents

On this page
Function details
Request address
request format
Incoming parameter description
Sample input
Return data field description
Sample output

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 nameField typeField description
accessTokenStringAdministrator account accessToken
expireTimeLongThe 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"
}
Postman interface simulation call
API request example