github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jtvapi / jtv_php_api

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A PHP client library for the Justin.tv API — Read more

  cancel

http://api.justin.tv

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

added support for non-json responses 
jtvapi (author)
Mon Nov 09 14:50:39 -0800 2009
commit  c5be7fa918f7b3eb6bf3fa6c00e531f974d1bd7b
tree    75f2cdeed97d0052f3d4a8e35c4f2fbf06ec531f
parent  2851e87355543ca88dd8516fdc50a506862fb570
jtv_php_api /
name age
history
message
file .gitignore Thu Nov 05 13:52:49 -0800 2009 Got rid of .DS_Store [jtvapi]
file jtv_client.inc.php Mon Nov 09 14:50:39 -0800 2009 added support for non-json responses [jtvapi]
file jtv_constants.inc.php Thu Nov 05 12:52:40 -0800 2009 first commit [jtvapi]
file readme.markdown Thu Nov 05 13:39:45 -0800 2009 added dependencies to the readme [jtvapi]
directory test/ Thu Nov 05 13:52:49 -0800 2009 Got rid of .DS_Store [jtvapi]
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:

  1. Put your oauth keys in jtv_constants.inc.php
  2. 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.
  3. Create a page that calls recieve_user_authentication, which will return true on success.
  4. Do authenticated requests with the get and post functions.

See the test directory for an example usage.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server