Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Reference of v4 forward alloc

TheSnowfield edited this page Apr 23, 2021 · 1 revision
arguments description optional
time time sec YES
clear pre-clear the friend list
when set true
YES

Explain

Allocate a temporary access token for the persistent queries.
Token will be recycled while the time limit exceeds.

The default time limit is 10 sec.
You could configure it in the BOTARCAPI_FORWARD_TIMESEC_DEFAULT

Return data

{
    "status": 0,
    "content": {
        "access_token": "67c1e625a3afde07cc1cbf46e3a63a04",
        "valid_time": 10
    }
}

Error status

status description
0 everything is OK
-1 invalid time
-2 allocate an arc account failed
-233 unknown error occurred
Clone this wiki locally