TwurpleAuthenticationGetting dataExamplesFAQMigration

callTwitchApiRaw

Definition

callTwitchApiRaw(options, clientId, accessToken, authorizationType, fetchOptions, mockServerPort)

async

Makes a call to the Twitch API using the given credentials, returning the raw Response object.

ParameterTypeRequiredDefaultDescription
optionsTwitchApiCallOptionsnone

The configuration of the call.

clientIdstringnone

The client ID of your application.

accessTokenstringnone

The access token to call the API with.

You need to obtain one using one of the Twitch OAuth flows.

authorizationTypestringnone

The type of Authorization header to send.

Defaults to "Bearer" for Helix and "OAuth" for everything else.

fetchOptionsTwitchApiCallFetchOptions<complex>

Additional options to be passed to the fetch function.

mockServerPortnumbernonenone
Return type: Response