Skip to content

class Twitter_OAuthRequest

Oliver edited this page Apr 25, 2020 · 1 revision

www/includes/twitter-php/OAuth.php


Twitter_OAuthRequest

Package

Default

Overview

Public Properties

base_string() | POST_INPUT() | version() |

Constants

No constants found

Public Methods

__construct() | __toString() | build_signature() | from_consumer_and_token() | from_request() | get_normalized_http_method() | get_normalized_http_url() | get_parameter() | get_parameters() | get_signable_parameters() | get_signature_base_string() | set_parameter() | sign_request() | to_header() | to_postdata() | to_url() | unset_parameter() |

Properties

base_string

public $base_string

http_method

protected $http_method

http_url

protected $http_url

parameters

protected $parameters

POST_INPUT

public $POST_INPUT

version

public $version

Methods

__construct()

public __construct(mixed $http_method, mixed $http_url, mixed $parameters = null) : mixed

__toString()

public __toString() : mixed

build_signature()

public build_signature(mixed $signature_method, mixed $consumer, mixed $token) : mixed

from_consumer_and_token()

pretty much a helper function to set up the request

public from_consumer_and_token(mixed $consumer, mixed $token, mixed $http_method, mixed $http_url, mixed $parameters = null) : mixed static

from_request()

attempt to build up a request from what was passed to the server

public from_request(mixed $http_method = null, mixed $http_url = null, mixed $parameters = null) : mixed static

generate_nonce()

util function: current nonce

private generate_nonce() : mixed static

generate_timestamp()

util function: current timestamp

private generate_timestamp() : mixed static

get_normalized_http_method()

just uppercases the http method

public get_normalized_http_method() : mixed

get_normalized_http_url()

parses the url and rebuilds it to be scheme://host/path

public get_normalized_http_url() : mixed

get_parameter()

public get_parameter(mixed $name) : mixed

get_parameters()

public get_parameters() : mixed

get_signable_parameters()

The request parameters, sorted and concatenated into a normalized string.

public get_signable_parameters() : 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 &.

public get_signature_base_string() : mixed

set_parameter()

public set_parameter(mixed $name, mixed $value, mixed $allow_duplicates = true) : mixed

sign_request()

public sign_request(mixed $signature_method, mixed $consumer, mixed $token) : mixed

to_header()

builds the Authorization: header

public to_header(mixed $realm = null) : mixed

to_postdata()

builds the data one would send in a POST request

public to_postdata() : mixed

to_url()

builds a url usable for a GET request

public to_url() : mixed

unset_parameter()

public unset_parameter(mixed $name) : mixed


\ » Classes » Twitter_OAuthRequest

Clone this wiki locally