class OAuthRequest

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_internal($start)

builds the Authorization: header

to_header()

No description

to_alternate_header()

No description

__toString()

No description

sign_request($signature_method, $consumer, $token)

No description

build_signature($signature_method, $consumer, $token)

No description

Details

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

Parameters

$http_method
$http_url
$parameters

at line 26
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 72
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 94
set_parameter($name, $value, $allow_duplicates = true)

Parameters

$name
$value
$allow_duplicates

at line 109
get_parameter($name)

Parameters

$name

at line 113
get_parameters()

at line 117
unset_parameter($name)

Parameters

$name

at line 125
string get_signable_parameters()

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

Return Value

string

at line 145
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 160
get_normalized_http_method()

just uppercases the http method

at line 168
get_normalized_http_url()

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

at line 188
to_url()

builds a url usable for a GET request

at line 200
to_postdata()

builds the data one would send in a POST request

at line 207
to_header_internal($start)

builds the Authorization: header

Parameters

$start

at line 226
to_header()

at line 229
to_alternate_header()

at line 233
__toString()

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

Parameters

$signature_method
$consumer
$token

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

Parameters

$signature_method
$consumer
$token