TwitterOAuth __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: |
|
void delete(
$url, [
$parameters = array()]
)
|
|
DELETE wrapper for oAuthReqeust.
Parameters:
void get(
$url, [
$parameters = array()]
)
|
|
GET wrapper for oAuthRequest.
Parameters:
array("oauth_token" getAccessToken(
$oauth_verifier
)
|
|
Exchange request token and secret for an access token and secret, to sign API calls.
Parameters:
API Tags:
Return: | => "the-access-token", "oauth_token_secret" => "the-access-secret", "user_id" => "9436992", "screen_name" => "abraham") |
a getAuthorizeURL(
$token, [
$sign_in_with_twitter = TRUE]
)
|
|
Get the authorize URL
Parameters:
|
$token: |
|
|
$sign_in_with_twitter: |
|
API Tags:
void getHeader(
$ch,
$header
)
|
|
Get the header info to store.
Parameters:
a getRequestToken(
$oauth_callback
)
|
|
Get a request_token from Twitter
Parameters:
API Tags:
Return: | key/value array containing oauth_token and oauth_token_secret |
array("oauth_token" getXAuthToken(
$username,
$password
)
|
|
One time exchange of username and password for access token and secret.
Parameters:
API Tags:
Return: | => "the-access-token", "oauth_token_secret" => "the-access-secret", "user_id" => "9436992", "screen_name" => "abraham", "x_auth_expires" => "0") |
API http(
$url,
$method, [
$postfields = NULL]
)
|
|
Make an HTTP request
Parameters:
|
$url: |
|
|
$method: |
|
|
$postfields: |
|
API Tags:
void oAuthRequest(
$url,
$method,
$parameters
)
|
|
Format and sign an OAuth / API request
Parameters:
|
$url: |
|
|
$method: |
|
|
$parameters: |
|
void post(
$url, [
$parameters = array()]
)
|
|
POST wrapper for oAuthRequest.
Parameters: