jtvapi / jtv_php_api
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Nov 05 13:52:49 -0800 2009 | |
| |
jtv_client.inc.php | Mon Nov 09 14:50:39 -0800 2009 | |
| |
jtv_constants.inc.php | Thu Nov 05 12:52:40 -0800 2009 | |
| |
readme.markdown | Thu Nov 05 13:39:45 -0800 2009 | |
| |
test/ | Thu Nov 05 13:52:49 -0800 2009 |
readme.markdown
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.
