G
G
Go+ Security API
Search…
⌃K

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

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

Code
Description
4010
app_key not exist
4011
Signature expiration (the same request parameters cannot be requested more than once)
4012
Wrong Signature
Last modified 3d ago