Property | Type | Description | |
---|---|---|---|
$POST_INPUT | |||
$base_string | for debug purposes | ||
$version |
Property | Type | Description | |
---|---|---|---|
$http_method | |||
$http_url | |||
$parameters |
Method | Description | |
---|---|---|
__construct ( $http_method, $http_url, $parameters = NULL ) | ||
__toString ( ) | ||
build_signature ( $signature_method, $consumer, $token ) | ||
from_consumer_and_token ( $consumer, $token, $http_method, $http_url, $parameters = NULL ) | pretty much a helper function to set up the request | |
from_request ( $http_method = NULL, $http_url = NULL, $parameters = NULL ) | attempt to build up a request from what was passed to the server | |
get_normalized_http_method ( ) | just uppercases the http method | |
get_normalized_http_url ( ) | parses the url and rebuilds it to be scheme://host/path | |
get_parameter ( $name ) | ||
get_parameters ( ) | ||
get_signable_parameters ( ) : string | The request parameters, sorted and concatenated into a normalized string. | |
get_signature_base_string ( ) | Returns the base string of this request | |
set_parameter ( $name, $value, $allow_duplicates = true ) | ||
sign_request ( $signature_method, $consumer, $token ) | ||
to_header ( $realm = null ) | builds the Authorization: header | |
to_postdata ( ) | builds the data one would send in a POST request | |
to_url ( ) | builds a url usable for a GET request | |
unset_parameter ( $name ) |
Method | Description | |
---|---|---|
generate_nonce ( ) | util function: current nonce | |
generate_timestamp ( ) | util function: current timestamp |
public static from_consumer_and_token ( $consumer, $token, $http_method, $http_url, $parameters = NULL ) |
public static from_request ( $http_method = NULL, $http_url = NULL, $parameters = NULL ) |
public get_normalized_http_method ( ) |
public get_normalized_http_url ( ) |
public get_signable_parameters ( ) : string | ||
return | string |
public get_signature_base_string ( ) |