TwitterOAuth Class Reference
Detailed Description
Twitter OAuth class
Constructor & Destructor Documentation
| __construct |
( |
$ |
consumer_key, |
|
|
$ |
consumer_secret, |
|
|
$ |
oauth_token = NULL, |
|
|
$ |
oauth_token_secret = NULL | |
|
) |
| | |
Member Function Documentation
| 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
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
| 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
Field Documentation
$TO_API_ROOT = "https://twitter.com" [static] |
The documentation for this class was generated from the following file: