Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (11 sloc) 650 Bytes PHP Client Library

Requires the OAuth PECL extension. Install it with pecl install oauth. See for more info.

How to use:

How to be authenticated as a user:

  1. Put your oauth keys in
  2. Call start_user_authentication, which will recirect the user to 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.

Something went wrong with that request. Please try again.