Property | Type | Description | |
---|---|---|---|
$connecttimeout | * Set connect timeout. | ||
$decode_json | * Decode returned json data. | ||
$format | * Respons format. | ||
$host | * Set up the API root URL. | ||
$http_code | * Contains the last HTTP status code returned. | ||
$http_info | * Contains the last HTTP headers returned. | ||
$ssl_verifypeer | * Verify SSL Cert. | ||
$timeout | * Set timeout default. | ||
$url | * Contains the last API call. | ||
$useragent | * Set the useragnet. |
Method | Description | |
---|---|---|
__construct ( $consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL ) | construct TwitterOAuth object | |
accessTokenURL ( ) | Set API URLS | |
authenticateURL ( ) | ||
authorizeURL ( ) | ||
delete ( $url, $parameters = [] ) | DELETE wrapper for oAuthReqeust. | |
get ( $url, $parameters = [] ) | GET wrapper for oAuthRequest. | |
getAccessToken ( $oauth_verifier ) | Exchange request token and secret for an access token and secret, to sign API calls. | |
getAuthorizeURL ( $token, $sign_in_with_twitter = TRUE ) | Get the authorize URL | |
getHeader ( $ch, $header ) | Get the header info to store. | |
getRequestToken ( $oauth_callback ) | Get a request_token from Twitter | |
getXAuthToken ( $username, $password ) | One time exchange of username and password for access token and secret. | |
http ( $url, $method, $postfields = NULL ) : API | Make an HTTP request | |
lastAPICall ( ) | ||
lastStatusCode ( ) | Debug helpers | |
oAuthRequest ( $url, $method, $parameters ) | Format and sign an OAuth / API request | |
post ( $url, $parameters = [] ) | POST wrapper for oAuthRequest. | |
requestTokenURL ( ) |
public __construct ( $consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL ) |
public getAccessToken ( $oauth_verifier ) |
public getAuthorizeURL ( $token, $sign_in_with_twitter = TRUE ) |
public getRequestToken ( $oauth_callback ) |
public getXAuthToken ( $username, $password ) |
public http ( $url, $method, $postfields = NULL ) : API | ||
return | API | results |
public oAuthRequest ( $url, $method, $parameters ) |