Definition
callTwitchApi<T>(options, clientId, accessToken, authorizationType, fetchOptions)
asyncMakes a call to the Twitch API using given credentials.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
options | TwitchApiCallOptions | none | The configuration of the call. | |
clientId | string | none | The client ID of your application. | |
accessToken | string | none | The access token to call the API with. You need to obtain one using one of the Twitch OAuth flows. | |
authorizationType | string | none | The type of Authorization header to send. Defaults to "Bearer" for Helix and "OAuth" for everything else. | |
fetchOptions | TwitchApiCallFetchOptions | <complex> | Additional options to be passed to the |
Return type: T