class OAuthRequest


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

Properties

$base_string
static $version
static $POST_INPUT

Methods

__construct($http_method, $http_url, $parameters = NULL)

No description

static 
from_request($http_method = NULL, $http_url = NULL, $parameters = NULL)

attempt to build up a request from what was passed to the server

static 
from_consumer_and_token($consumer, $token, $http_method, $http_url, $parameters = NULL)

pretty much a helper function to set up the request

set_parameter($name, $value, $allow_duplicates = true)

No description

get_parameter($name)

No description

get_parameters()

No description

unset_parameter($name)

No description

string
get_signable_parameters()

The request parameters, sorted and concatenated into a normalized string.

get_signature_base_string()

Returns the base string of this request

get_normalized_http_method()

just uppercases the http method

get_normalized_http_url()

parses the url and rebuilds it to be scheme://host/path

to_url()

builds a url usable for a GET request

to_postdata()

builds the data one would send in a POST request

to_header($realm = null)

builds the Authorization: header

__toString()

No description

sign_request($signature_method, $consumer, $token)

No description

build_signature($signature_method, $consumer, $token)

No description

Details

at line 229
__construct($http_method, $http_url, $parameters = NULL)

Parameters

$http_method
$http_url
$parameters

at line 241
static from_request($http_method = NULL, $http_url = NULL, $parameters = NULL)

attempt to build up a request from what was passed to the server

Parameters

$http_method
$http_url
$parameters

at line 292
static from_consumer_and_token($consumer, $token, $http_method, $http_url, $parameters = NULL)

pretty much a helper function to set up the request

Parameters

$consumer
$token
$http_method
$http_url
$parameters

at line 306
set_parameter($name, $value, $allow_duplicates = true)

Parameters

$name
$value
$allow_duplicates

at line 321
get_parameter($name)

Parameters

$name

at line 325
get_parameters()

at line 329
unset_parameter($name)

Parameters

$name

at line 337
string get_signable_parameters()

The request parameters, sorted and concatenated into a normalized string.

Return Value

string

at line 357
get_signature_base_string()

Returns the base string of this request

The base string defined as the method, the url and the parameters (normalized), each urlencoded and the concated with &.

at line 372
get_normalized_http_method()

just uppercases the http method

at line 380
get_normalized_http_url()

parses the url and rebuilds it to be scheme://host/path

at line 400
to_url()

builds a url usable for a GET request

at line 412
to_postdata()

builds the data one would send in a POST request

at line 419
to_header($realm = null)

builds the Authorization: header

Parameters

$realm

at line 443
__toString()

at line 448
sign_request($signature_method, $consumer, $token)

Parameters

$signature_method
$consumer
$token

at line 458
build_signature($signature_method, $consumer, $token)

Parameters

$signature_method
$consumer
$token