You are here

Sample Source Code: TwitchTV Drops PHP Sample Source Code by TwitchTV Followers

Drops brings viewers closer to games by rewarding them for viewing. It allows you to create an ecosystem that extends outside the game and enriches the experience when viewers return. This code sample is a simple PHP application illustrating how to authenticate players, create connections to VHS, and process VHS heartbeats. Twitch will POST the Viewer Heartbeat Service JSON formatted data to your designated HTTPS endpoint every minute, on each reported channel. The Twitch API allows you to develop your own applications using a rich feature set and provides a way to get data about which streams are live, change information about specific channels, and use Twitch Identity to log into your application. Twitch is a video platform and community for gamers and developers that want to learn how to build tools and integrations for social video platforms.