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

Sign Method

Concatenate app_key, time, app_secret in turn, and do sha1().

Example

app_key = mBOMg20QW11BbtyH4Zh0
time = 1647847498
app_secret = V6aRfxlPJwN3ViJSIFSCdxPvneajuJsh
sign = sha1(mBOMg20QW11BbtyH4Zh01647847498V6aRfxlPJwN3ViJSIFSCdxPvneajuJsh)
= 7293d385b9225b3c3f232b76ba97255d0e21063e

CURL

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 Example

Response for a successful request:
{
"code" : 1,
"message" : "OK",
"result" : {
"access_token" : "Bearer 6|OgThu2jAjFJlXpBBjMWICsBpssyUFNbY5745uosS",
"expires_in" : 7200
}
}

Parameters

Parameter
Description
access_token
API call credential
expires_in
The time to expiration of the API call credential (access_token), in seconds.

Error Code