TwitterOAuth Class Reference

Public Member Functions

 requestTokenURL ()
 authorizeURL ()
 accessTokenURL ()
 lastStatusCode ()
 lastAPICall ()
 __construct ($consumer_key, $consumer_secret, $oauth_token=NULL, $oauth_token_secret=NULL)
 getRequestToken ()
 oAuthParseResponse ($responseString)
 getAuthorizeURL ($token)
 getAccessToken ($token=NULL)
 oAuthRequest ($url, $args=array(), $method=NULL)
 http ($url, $post_data=null)

Static Public Attributes

static $TO_API_ROOT = "https://twitter.com"

Detailed Description

Twitter OAuth class


Constructor & Destructor Documentation

__construct ( consumer_key,
consumer_secret,
oauth_token = NULL,
oauth_token_secret = NULL 
)

construct TwitterOAuth object


Member Function Documentation

accessTokenURL (  ) 
authorizeURL (  ) 
getAccessToken ( token = NULL  ) 

Exchange the request token and secret for an access token and secret, to sign API calls.

Returns:
array("oauth_token" => the access token, "oauth_token_secret" => the access secret)
getAuthorizeURL ( token  ) 

Get the authorize URL

Returns:
a string
getRequestToken (  ) 

Get a request_token from Twitter

Returns:
a key/value array containing oauth_token and oauth_token_secret
http ( url,
post_data = null 
)

Make an HTTP request

Returns:
API results
lastAPICall (  ) 
lastStatusCode (  ) 

Debug helpers

oAuthParseResponse ( responseString  ) 

Parse a URL-encoded OAuth response

Returns:
a key/value array
oAuthRequest ( url,
args = array(),
method = NULL 
)

Format and sign an OAuth / API request

requestTokenURL (  ) 

Set API URLS


Field Documentation

$TO_API_ROOT = "https://twitter.com" [static]

The documentation for this class was generated from the following file:

Generated on Sat Dec 5 20:38:07 2009 for Wayati by  doxygen 1.6.1