Access Token
post
https://api.gopluslabs.io/api/v1/token
Method: POST
URL: https://api.gopluslabs.io/api/v1/token
Parameters:
Parameters
Type
Required
Description
app_key
string
Yes
App key
time
int
Yes
Quest timestamp
sign
string
Yes
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 4mo ago
Copy link
On this page
post
Sign Method
Example
Response Example
Error Code