OAuth1Request
- Full name:
\OAuth1Request
Properties
parameters
http_method
http_url
base_string
version
- This property is static.
POST_INPUT
- This property is static.
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$http_method |
mixed | |
$http_url |
mixed | |
$parameters |
mixed |
from_request
attempt to build up a request from what was passed to the server
public static from_request(mixed $http_method = NULL, mixed $http_url = NULL, mixed $parameters = NULL): mixed
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$http_method |
mixed | |
$http_url |
mixed | |
$parameters |
mixed |
from_consumer_and_token
pretty much a helper function to set up the request
public static from_consumer_and_token(mixed $consumer, mixed $token, mixed $http_method, mixed $http_url, mixed $parameters = NULL): mixed
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$consumer |
mixed | |
$token |
mixed | |
$http_method |
mixed | |
$http_url |
mixed | |
$parameters |
mixed |
set_parameter
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed | |
$value |
mixed | |
$allow_duplicates |
mixed |
get_parameter
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed |
get_parameters
unset_parameter
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
mixed |
get_signable_parameters
The request parameters, sorted and concatenated into a normalized string.
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 &.
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
builds the Authorization: header
Parameters:
Parameter | Type | Description |
---|---|---|
$realm |
mixed |
__toString
sign_request
Parameters:
Parameter | Type | Description |
---|---|---|
$signature_method |
mixed | |
$consumer |
mixed | |
$token |
mixed |
build_signature
Parameters:
Parameter | Type | Description |
---|---|---|
$signature_method |
mixed | |
$consumer |
mixed | |
$token |
mixed |
generate_timestamp
util function: current timestamp
- This method is static.
generate_nonce
util function: current nonce
- This method is static.
Automatically generated on 2025-03-18