Skip to content

export Class

APIManager ​

extends ​

BaseManager<APIManagerOptions>

Constructor ​

ts
new APIManager( client )
ParameterTypeDescription
clientClient

Properties ​

get token : string ​

readonly client : Client ​

readonly default? : APIManagerOptions ​

readonly options : APIManagerOptions ​

Methods ​

asyncrequest( URL, method, ...argumants ) ​

ParameterTypeDescription
URLstring
methodAxiosMethod
...argumantsany[]

Returns: Promise<any>

setToken( token ) ​

ParameterTypeDescription
tokenstring

Returns: void