Justin.tv PHP Client Library
Requires the OAuth PECL extension. Install it with pecl install oauth. See http://pecl.php.net/package/oauth for more info.
How to use:
How to be authenticated as a user:
- Put your oauth keys in jtv_constants.inc.php
- Call start_user_authentication, which will recirect the user to Justin.tv to log in. $redirect should be a page on your site that implements step 3.
- Create a page that calls recieve_user_authentication, which will return true on success.
- Do authenticated requests with the get and post functions.
See the test directory for an example usage.