Modern wrapper for the Twitch API with typings.
# With npm:
npm install twitch-api-ts
# With yarn:
yarn add twitch-api-ts
import { TwitchAPI } from 'twitch-api-ts';
// Initialize client.
const client = new TwitchOAuth({
clientId: '..............',
accessToken: '..........',
});
// If uses require function you will need to use .default
// For import in typescript, this is not required
const { TwitchAPI } = require('twitch-api-ts').default;
- Bits:
- Get bits leaderboard.
- Get Cheermotes.
- Get Extension Transactions.
- Channels:
- Get channel information.
- Modify channel information.
- Get channel editors.
- Channel Points:
- Create custom rewards.
- Get custom rewards.
- Get rewards redemptions.
- Delete custom rewards.
- Update custom rewards.
- Update redemption status.
- Charity:
- Get charity campaign.
- Get charity campaign donations.
- Chat:
- Get chatters.
- Get channel emotes.
- Get global emotes.
- Get emote sets.
- Get channel chat badges.
- Get chat settings.
- Update chat settings.
- Get user chat color.
- Update user chat color.
- Clips:
- Create clip.
- Get clips.
- Entitlements:
- Get code status.
- Get drrops entitlements.
- Update drops entitlements.
- Redeem code. Users:
- Get users. And more...
Contributions, issues and feature requests are welcome! Feel free to check issues page.
Give a ⭐️ if this project helped you!
Or buy me a coffeelatte 🙌🏾