# API authenticate
# Access Token
TIP
This API is used to obtain AccessToken
according to AccessKey
and AccessSecret
. AccessKey
and AccessSecret
are provided by cloud administrator.
WARNING
The AccessToken
is valid for 12 hours. If a request is made to the API with an expired token, the API will return status 401
. Every AccessToken
provides 12 hours validity, pls do not call frequently. If the system judges that a certain IP call frequently, the IP may not be able to call anymore.
# Use of AccessToken
TIP
After the requester gets the token, it can call the API of the open platform to request resource data.Set the value of Authorization to "Bearer YOUR_ACCESSTOKEN" through HTTP Headers for security verification
Example:
$ curl -i http://{DOMAIN}/open/OpenOutImp/devList \
-H "Authorization: Bearer YOUR_ACCESSTOKEN" \
-X POST \
-d '{}'
1
2
3
4
2
3
4
# Parameters List
# Online Test
POST Access API TOKEN
https://ilinkopenapi.liugong.com/service/auth/login
# Reset Access key
# Parameters List
Parameter | Type | Required | Description |
---|---|---|---|
accessKey | String | yes | User Unique Credential |
# Online Test
POST Reset Access key
https://ilinkopenapi.liugong.com/service/open/openAccess/restAccessSecret