Comprehensive code examples covering all kappopher features.
- Quick Start Guide - Installation, authentication, and basic setup
- Basic Usage - Simple API calls, pagination, and error handling
- Authentication - All OAuth 2.0 flows (client credentials, authorization code, device code, implicit, token refresh, OIDC)
- Chat Bot - Building a chat bot with EventSub
- IRC Client - Low-level IRC/WebSocket chat client
- EventSub Webhooks - Handle webhook notifications with signature verification
- EventSub WebSocket - Real-time event streaming without a public endpoint
- PubSub Migration - PubSub-style API using EventSub
- API Usage Examples - Common API patterns for users, channels, streams, chat, moderation, polls, predictions, and clips
- Channel Points - Custom rewards, redemptions, real-time tracking
- Bits & Subscriptions - Bits leaderboard, cheermotes, subscriber management
- Videos & Clips - VODs, highlights, clips, stream markers
- Schedule & Goals - Stream schedule management, creator goals
- Raids & Hype Train - Channel raids, hype train tracking
- Analytics & Charity - Extension/game analytics, charity campaigns, teams, guest star, conduits
- Batch & Caching - Batch operations, caching, rate limiting, middleware
- Extension JWT - JWT authentication for Twitch Extensions
| Feature | Example File |
|---|---|
| OAuth Authentication | authentication.md |
| Get Users/Channels | basic.md, api-usage.md |
| Send Chat Messages | chatbot.md, irc-client.md |
| Handle Chat Events | irc-client.md, eventsub-websocket.md |
| Moderation | chatbot.md, api-usage.md |
| Channel Points | channel-points.md |
| Bits | bits-subscriptions.md |
| Subscriptions | bits-subscriptions.md |
| Stream Schedule | schedule-goals.md |
| Creator Goals | schedule-goals.md |
| Raids | raids-hypetrain.md |
| Hype Train | raids-hypetrain.md |
| Clips | videos-clips.md |
| Videos/VODs | videos-clips.md |
| Polls & Predictions | api-usage.md |
| EventSub WebSocket | eventsub-websocket.md |
| EventSub Webhooks | eventsub-webhooks.md |
| Batch Requests | batch-caching.md |
| Caching | batch-caching.md |
| Middleware | batch-caching.md |
| Extensions | extension-jwt.md |
| Analytics | analytics-charity.md |
| Charity | analytics-charity.md |
| Teams | analytics-charity.md |
| Conduits | analytics-charity.md |
| Use Case | Start Here |
|---|---|
| Build a chat bot | chatbot.md or irc-client.md |
| Monitor stream events | eventsub-websocket.md |
| Create a dashboard | batch-caching.md |
| Manage channel points | channel-points.md |
| Track subscriptions | bits-subscriptions.md |
| Server-side integration | eventsub-webhooks.md |
| Build an extension | extension-jwt.md |
| Migrate from PubSub | pubsub-migration.md |