Methods
__construct()
__construct($http_method, $http_url, $parameters)
Parameters
$http_method
$http_url
$parameters
__toString()
__toString()
build_signature()
build_signature($signature_method, $consumer, $token)
Parameters
$signature_method
$consumer
$token
pretty much a helper function to set up the request
from_consumer_and_token($consumer, $token, $http_method, $http_url, $parameters)
Static
Parameters
$consumer
$token
$http_method
$http_url
$parameters
attempt to build up a request from what was passed to the server
from_request($http_method, $http_url, $parameters)
Static
Parameters
$http_method
$http_url
$parameters
just uppercases the http method
get_normalized_http_method()
parses the url and rebuilds it to be
scheme://host/path
get_normalized_http_url()
get_parameter()
get_parameter($name)
get_parameters()
get_parameters()
The request parameters, sorted and concatenated into a normalized string.
get_signable_parameters() : string
Returns the base string of this request
get_signature_base_string()
The base string defined as the method, the url
and the parameters (normalized), each urlencoded
and the concated with &.
set_parameter()
set_parameter($name, $value, $allow_duplicates)
Parameters
$name
$value
$allow_duplicates
sign_request()
sign_request($signature_method, $consumer, $token)
Parameters
$signature_method
$consumer
$token
builds the data one would send in a POST request
to_postdata()
builds a url usable for a GET request
to_url()
unset_parameter()
unset_parameter($name)
util function: current nonce
generate_nonce()
Static
util function: current timestamp
generate_timestamp()
Static
Properties