static void 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: |
|
API Tags:
static void 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: |
|
API Tags:
OAuthRequest __construct(
$http_method,
$http_url, [
$parameters = NULL]
)
|
|
Parameters:
|
$http_method: |
|
|
$http_url: |
|
|
$parameters: |
|
void build_signature(
$signature_method,
$consumer,
$token
)
|
|
Parameters:
|
$signature_method: |
|
|
$consumer: |
|
|
$token: |
|
API Tags:
void get_normalized_http_method(
)
|
|
just uppercases the http method
API Tags:
void get_normalized_http_url(
)
|
|
parses the url and rebuilds it to be
scheme://host/path
API Tags:
void get_parameter(
$name
)
|
|
Parameters:
API Tags:
string get_signable_parameters(
)
|
|
The request parameters, sorted and concatenated into a normalized string.
API Tags:
void 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 &.
API Tags:
void set_parameter(
$name,
$value, [
$allow_duplicates = true]
)
|
|
Parameters:
|
$name: |
|
|
$value: |
|
|
$allow_duplicates: |
|
API Tags:
void sign_request(
$signature_method,
$consumer,
$token
)
|
|
Parameters:
|
$signature_method: |
|
|
$consumer: |
|
|
$token: |
|
API Tags:
void to_header(
[
$realm = null]
)
|
|
builds the Authorization: header
Parameters:
API Tags:
builds the data one would send in a POST request
API Tags:
builds a url usable for a GET request
API Tags:
void unset_parameter(
$name
)
|
|
Parameters:
API Tags: