SunnysideUp\ShareThis\OAuthRequest
Synopsis
class OAuthRequest
{
- // members
- private $parameters;
- private $http_method;
- private $http_url;
- public $base_string;
- public static string $version = '1.0';
- public static string $POST_INPUT = 'php://input';
- // methods
- public void __construct()
- public static void from_request()
- public static void from_consumer_and_token()
- public void set_parameter()
- public void get_parameter()
- public void get_parameters()
- public void unset_parameter()
- public string get_signable_parameters()
- public void get_signature_base_string()
- public void get_normalized_http_method()
- public void get_normalized_http_url()
- public void to_url()
- public void to_postdata()
- public void to_header()
- public void __toString()
- public void sign_request()
- public void build_signature()
- private static void generate_timestamp()
- private static void generate_nonce()
Members
private
- $http_method
- $http_url
- $parameters
public
- $POST_INPUT
- $base_string
- $version
Methods
private
- generate_nonce() — util function: current nonce
- generate_timestamp() — util function: current timestamp
public
- __construct()
- __toString()
- build_signature()
- from_consumer_and_token() — pretty much a helper function to set up the request
- from_request() — 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()
- get_parameters()
- get_signable_parameters() — The request parameters, sorted and concatenated into a normalized string.
- get_signature_base_string() — Returns the base string of this request
- set_parameter()
- sign_request()
- to_header() — 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()