Overview
Properties
Methods
Constructor
new ApiClient(config)
Creates a new API client instance.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| config | ApiConfig | none |
Configuration for the client instance. |
Properties
Methods
callApi<T>(options)
asyncMakes a call to the Twitch API using your access token.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| options | TwitchApiCallOptions | none |
The configuration of the call. |
Return type:
T
requestScopes(scopes)
asyncRequests scopes from the auth provider.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| scopes | Array<string> | none | The scopes to request. |
Return type:
void