Skip to content

A Twitch Wrapper for gathering information about a users live stream.

Notifications You must be signed in to change notification settings

eedson/Get-Twitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Get-Twitch

A Twitch API Wrapper for gathering information about a users live stream.

Make sure to include your Twitch ClientID in checkTwitch.php.

Reference: https://www.twitch.tv/settings/connections

Functions

checkLive(string username) | Returns 1 if live and 0 if not live.

getViewers(string username) | Returns concurrent number of viewers.

getGame(string username) | Returns current game.

getFollowers(string username) | Returns total number of followers.

totalViews(string username) | Returns total view count.

getStatus(string username) | Returns stream title.

isPartner(string username) | Returns 1 if Twitch Partner and 0 if not Twitch Partner.

Example

"; $viewCount = getViewers(lirik); echo $viewCount; echo "
"; $gameName = getGame(lirik); echo $gameName; echo "
"; $followCount = getFollowers(lirik); echo $followCount; echo "
"; $status = getStatus(lirik); echo $status; echo "
"; $partner = isPartner(lirik); echo $partner; echo "
"; $totalViews = totalViews(lirik); echo $totalViews; ?>

About

A Twitch Wrapper for gathering information about a users live stream.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages