class TwitterOAuth


Located at : UKNOWVA_ROOT/components/com_community/libraries/twitter/twitteroauth.php

Twitter OAuth class

Properties

$http_code
$url
$host
$timeout
$connecttimeout
$ssl_verifypeer
$format
$decode_json
$http_info
$useragent

Methods

accessTokenURL()

Set API URLS

authenticateURL()

No description

authorizeURL()

No description

requestTokenURL()

No description

lastStatusCode()

Debug helpers

lastAPICall()

No description

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

construct TwitterOAuth object

getRequestToken($oauth_callback = NULL)

Get a request_token from Twitter

getAuthorizeURL($token, $sign_in_with_twitter = TRUE)

Get the authorize URL

getAccessToken($oauth_verifier = FALSE)

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

getXAuthToken($username, $password)

One time exchange of username and password for access token and secret.

get($url, $parameters = array())

GET wrapper for oAuthRequest.

post($url, $parameters = array())

POST wrapper for oAuthRequest.

delete($url, $parameters = array())

DELETE wrapper for oAuthReqeust.

oAuthRequest($url, $method, $parameters)

Format and sign an OAuth / API request

API
http($url, $method, $postfields = NULL)

Make an HTTP request

getHeader($ch, $header)

Get the header info to store.

Details

at line 45
accessTokenURL()

Set API URLS

at line 46
authenticateURL()

at line 47
authorizeURL()

at line 48
requestTokenURL()

at line 53
lastStatusCode()

Debug helpers

at line 54
lastAPICall()

at line 59
__construct($consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL)

construct TwitterOAuth object

Parameters

$consumer_key
$consumer_secret
$oauth_token
$oauth_token_secret

at line 75
getRequestToken($oauth_callback = NULL)

Get a request_token from Twitter

Parameters

$oauth_callback

at line 91
getAuthorizeURL($token, $sign_in_with_twitter = TRUE)

Get the authorize URL

Parameters

$token
$sign_in_with_twitter

at line 111
getAccessToken($oauth_verifier = FALSE)

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

Parameters

$oauth_verifier

at line 131
getXAuthToken($username, $password)

One time exchange of username and password for access token and secret.

Parameters

$username
$password

at line 145
get($url, $parameters = array())

GET wrapper for oAuthRequest.

Parameters

$url
$parameters

at line 156
post($url, $parameters = array())

POST wrapper for oAuthRequest.

Parameters

$url
$parameters

at line 167
delete($url, $parameters = array())

DELETE wrapper for oAuthReqeust.

Parameters

$url
$parameters

at line 178
oAuthRequest($url, $method, $parameters)

Format and sign an OAuth / API request

Parameters

$url
$method
$parameters

at line 197
API http($url, $method, $postfields = NULL)

Make an HTTP request

Parameters

$url
$method
$postfields

Return Value

API results

at line 236
getHeader($ch, $header)

Get the header info to store.

Parameters

$ch
$header