Access Token
post
https://api.gopluslabs.io/api/v1/token
Method: POST
URL: https://api.gopluslabs.io/api/v1/token
Content-Type: multipart/form-data or application/json
Parameters:
Parameters | Type | Required | Description |
---|---|---|---|
app_key | string | True | App key |
time | int | True | Quest timestamp (Second) |
sign | string | True | Signature |
Concatenate app_key, time, app_secret in turn, and do sha1().
app_key = mBOMg20QW11BbtyH4Zh0
time = 1647847498
app_secret = V6aRfxlPJwN3ViJSIFSCdxPvneajuJsh
sign = sha1(mBOMg20QW11BbtyH4Zh01647847498V6aRfxlPJwN3ViJSIFSCdxPvneajuJsh)
= 7293d385b9225b3c3f232b76ba97255d0e21063e
curl --request POST \
--url https://api.gopluslabs.io/api/v1/token \
--header 'content-type: multipart/form-data' \
--form app_key=mBOMg20QW11BbtyH4Zh0 \
--form time=1647847498 \
--form sign=7293d385b9225b3c3f232b76ba97255d0e21063e
Response for a successful request:
{
"code" : 1,
"message" : "OK",
"result" : {
"access_token" : "Bearer 6|OgThu2jAjFJlXpBBjMWICsBpssyUFNbY5745uosS",
"expires_in" : 7200
}
}
Parameter | Description |
---|---|
access_token | API call credential |
expires_in | The time to expiration of the API call credential (access_token), in seconds. |
Last modified 17d ago