Skip to content

TwitterOAuth

Twitter OAuth class

  • Full name: \TwitterOAuth

Properties

http_code

public $http_code

url

public $url

host

public $host

timeout

public $timeout

connecttimeout

public $connecttimeout

ssl_verifypeer

public $ssl_verifypeer

format

public $format

decode_json

public $decode_json

http_info

public $http_info

useragent

public $useragent

Methods

accessTokenURL

Set API URLS

public accessTokenURL(): mixed

authenticateURL

public authenticateURL(): mixed

authorizeURL

public authorizeURL(): mixed

requestTokenURL

public requestTokenURL(): mixed

lastStatusCode

Debug helpers

public lastStatusCode(): mixed

lastAPICall

public lastAPICall(): mixed

__construct

construct TwitterOAuth object

public __construct(mixed $consumer_key, mixed $consumer_secret, mixed $oauth_token = NULL, mixed $oauth_token_secret = NULL): mixed

Parameters:

Parameter Type Description
$consumer_key mixed
$consumer_secret mixed
$oauth_token mixed
$oauth_token_secret mixed

getRequestToken

Get a request_token from Twitter

public getRequestToken(mixed $oauth_callback = NULL): mixed

Parameters:

Parameter Type Description
$oauth_callback mixed

getAuthorizeURL

Get the authorize URL

public getAuthorizeURL(mixed $token, mixed $sign_in_with_twitter = TRUE): mixed

Parameters:

Parameter Type Description
$token mixed
$sign_in_with_twitter mixed

getAccessToken

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

public getAccessToken(mixed $oauth_verifier = FALSE): mixed

Parameters:

Parameter Type Description
$oauth_verifier mixed

getXAuthToken

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

public getXAuthToken(mixed $username, mixed $password): mixed

Parameters:

Parameter Type Description
$username mixed
$password mixed

get

GET wrapper for oAuthRequest.

public get(mixed $url, mixed $parameters = array()): mixed

Parameters:

Parameter Type Description
$url mixed
$parameters mixed

post

POST wrapper for oAuthRequest.

public post(mixed $url, mixed $parameters = array()): mixed

Parameters:

Parameter Type Description
$url mixed
$parameters mixed

delete

DELETE wrapper for oAuthReqeust.

public delete(mixed $url, mixed $parameters = array()): mixed

Parameters:

Parameter Type Description
$url mixed
$parameters mixed

oAuthRequest

Format and sign an OAuth / API request

public oAuthRequest(mixed $url, mixed $method, mixed $parameters): mixed

Parameters:

Parameter Type Description
$url mixed
$method mixed
$parameters mixed

http

Make an HTTP request

public http(mixed $url, mixed $method, mixed $postfields = NULL): \API

Parameters:

Parameter Type Description
$url mixed
$method mixed
$postfields mixed

Return Value:

results


getHeader

Get the header info to store.

public getHeader(mixed $ch, mixed $header): mixed

Parameters:

Parameter Type Description
$ch mixed
$header mixed


Automatically generated on 2025-03-18