1、API List
This section contains the API used for the admin user to get the accessToken via appKey and secret.
See the following list:
No. | Function | Description |
---|---|---|
1 | Get accessToken via appKey and secret | Used for the administrator to get the accessToken |
1.1 Get accessToken via appKey and secret
API Function
This API is used for the admin user to get the accessToken。
Request Address
`https://open.ezvizlife.com/api/lapp/token/get`
Request Type
`POST`
Request Parameters
Parameter Name | Type | Description | Required |
---|---|---|---|
appKey | String | appKey | Y |
appSecret | String | appSecret | Y |
HTTP Request Message
POST /api/lapp/token/get HTTP/1.1 Host: open.ezvizlife.com Content-Type: application/x-www-form-urlencoded appKey=9mqitppidgce4y8n54ranvyqc9fjtsrl&appSecret=096e76501644989b63ba0016ec5776
Return Data
{ "data": {
"accessToken": "at.7jrcjmna8qnqg8d3dgnzs87m4v2dme3l-32enpqgusd-1jvdfe4-uxo15ik0s", "expireTime": 1470810222045, "areaDomain": "https://iusopen.ezvizlife.com"
}, "code": "200", "msg": "Operating succeeded!" } </pre>
Return Field
Field Name | Type | Description | |
---|---|---|---|
accessToken | String | Obtained accessToken | |
expireTime | long | Accurate to millisecond | |
areaDomain | String | the open api domain name of the user's region, the accessToken is valid only in this region |
- Return Code
Return Code | Return Information | Description |
---|---|---|
200 | Operating succeeded. | Request succeeded. |
10001 | The parameter is empty or incorrect format. | The parameter is empty or incorrect format. |
10005 | appKey exception | appKey is frozen. |
10017 | appKey does not exist. | Check the correctness of appKey |
10030 | appkey and appSecret mismatched. | |
49999 | Data exception. | API call exception. |