export Class
APIManager ​
extends ​
BaseManager
<APIManagerOptions
>
Constructor ​
ts
new APIManager( client )
Parameter | Type | Description |
---|---|---|
client | Client |
Properties ​
get token : string
​
readonly client : Client
​
readonly default? : APIManagerOptions
​
readonly options : APIManagerOptions
​
Methods ​
asyncrequest( URL, method, ...argumants ) ​
Parameter | Type | Description |
---|---|---|
URL | string | |
method | AxiosMethod | |
...argumants | any[] |
Returns: Promise
<any
>
setToken( token ) ​
Parameter | Type | Description |
---|---|---|
token | string |
Returns: void