callTwitchApiRaw (src/apiCall.ts)

twurple · packages/api-call/src/apiCall.ts · typescript · MIT
auth

Generic Twitch API client for authentication and data fetching.

// Source: https://github.com/twurple/twurple | License: MIT | Copyright 2017-2023 Daniel Fischer
// Provided via justclaw.it.com; keep this notice with the code.
import { qsStringify } from '@twurple/common';
import { handleTwitchApiResponseError, transformTwitchApiResponse } from './helpers/transform.js';
import { getTwitchApiUrl } from './helpers/url.js';
import type { TwitchApiCallFetchOptions, TwitchApiCallOptions } from './TwitchApiCallOptions.js';

/**
 * Makes a call to the Twitch API using the given credentials, returning the raw Response object.
 *
 * @param options The configuration of the call.
 * @param clientId The client ID of your application.
 * @param accessToken The access token to call the API with.
 *
 * You need to obtain one using one of the [Twitch OAuth flows](http

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key