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
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.
"; $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; ?>