TwitterOAuth
Twitter OAuth class
- Full name:
\TwitterOAuth
Properties
http_code
url
host
timeout
connecttimeout
ssl_verifypeer
format
decode_json
http_info
useragent
Methods
accessTokenURL
Set API URLS
authenticateURL
authorizeURL
requestTokenURL
lastStatusCode
Debug helpers
lastAPICall
__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
Parameters:
Parameter | Type | Description |
---|---|---|
$oauth_callback |
mixed |
getAuthorizeURL
Get the authorize URL
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.
Parameters:
Parameter | Type | Description |
---|---|---|
$oauth_verifier |
mixed |
getXAuthToken
One time exchange of username and password for access token and secret.
Parameters:
Parameter | Type | Description |
---|---|---|
$username |
mixed | |
$password |
mixed |
get
GET wrapper for oAuthRequest.
Parameters:
Parameter | Type | Description |
---|---|---|
$url |
mixed | |
$parameters |
mixed |
post
POST wrapper for oAuthRequest.
Parameters:
Parameter | Type | Description |
---|---|---|
$url |
mixed | |
$parameters |
mixed |
delete
DELETE wrapper for oAuthReqeust.
Parameters:
Parameter | Type | Description |
---|---|---|
$url |
mixed | |
$parameters |
mixed |
oAuthRequest
Format and sign an OAuth / API request
Parameters:
Parameter | Type | Description |
---|---|---|
$url |
mixed | |
$method |
mixed | |
$parameters |
mixed |
http
Make an HTTP request
Parameters:
Parameter | Type | Description |
---|---|---|
$url |
mixed | |
$method |
mixed | |
$postfields |
mixed |
Return Value:
results
getHeader
Get the header info to store.
Parameters:
Parameter | Type | Description |
---|---|---|
$ch |
mixed | |
$header |
mixed |
Automatically generated on 2025-03-18