Download the PHP package corbpie/twitch-api-class without Composer
On this page you can find all versions of the php package corbpie/twitch-api-class. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package twitch-api-class
Twitch API class
Updated for OAuth usage!
Feature packed, easy to use PHP class for the latest Twitch API.
You will need your free Twitch client id to use, see here to obtain.
To get your authorization code see here.
This class will automatically refresh access token once it expires!
Features
- Get top streams
- Get top streams for game
- Get popular games
- Get details for username
- Get user id for username
- Get users emotes
- Get emote image
- Get chat for a VOD
- Check if user is live
- Get users streaming game
- Get users streaming title
- Get users streaming id
- Get streaming thumbnail
- Get users view count
- Get users streaming description
- Get users stream start time
- Get users stream tags
- Get clips for game
- Get users clips
- Get game name for game id
- Get game artwork for game id
Usage
Fetch with composer:
To use:
Add your Twitch client id and client secret into (lines 7-8)
Add your redirect URI info (line 10)
Change the token filename constant, however keep it as a .txt extension (line 11)
Access code can be obtained with
Upon going to the link You will find the access code in the URL:
Calls
Get current top (view count) streams array
Get current top (view count) streams for a game array
Get top (view count) streamer for a game string
Get viewer count for the top stream for a game string
Get top games array
(Good way to get gameid's)
Get details for username array
Get user id for username string
Get emotes for username array
Get image for emote id string
Get chat for VOD array
Get users stream details (If live) array
Check if a user is live and streaming boolean
If user is streaming:
Get game id string
Get viewer count string
Get stream title string
Get stream id string
Get stream start time string
Get stream thumbnail string
Get stream thumbnail array
Get top clips for game id array
Get users top clips array
Get users videos (most recent first) array
Get users videos for game id array
Get game data for game id array
Get game name string
Get game artwork string
Get game artwork string
Custom array access string
All versions of twitch-api-class with dependencies
ext-curl Version *