Skip to content

class Twitter_OAuthServer

Oliver edited this page Apr 25, 2020 · 1 revision

www/includes/twitter-php/OAuth.php


Twitter_OAuthServer

Package

Default

Overview

Public Properties

No public properties found

Constants

No constants found

Public Methods

__construct() | add_signature_method() | fetch_access_token() | fetch_request_token() | verify_request() |

Properties

data_store

protected $data_store

signature_methods

protected $signature_methods

timestamp_threshold

protected $timestamp_threshold

version

protected $version

Methods

__construct()

public __construct(mixed $data_store) : mixed

add_signature_method()

public add_signature_method(mixed $signature_method) : mixed

check_nonce()

check that the nonce is not repeated

private check_nonce(mixed $consumer, mixed $token, mixed $nonce, mixed $timestamp) : mixed

check_signature()

all-in-one function to check the signature on a request should guess the signature method appropriately

private check_signature(mixed $request, mixed $consumer, mixed $token) : mixed

check_timestamp()

check that the timestamp is new enough

private check_timestamp(mixed $timestamp) : mixed

fetch_access_token()

process an access_token request returns the access token on success

public fetch_access_token(mixed $request) : mixed

fetch_request_token()

process a request_token request returns the request token on success

public fetch_request_token(mixed $request) : mixed

get_consumer()

try to find the consumer for the provided request's consumer key

private get_consumer(mixed $request) : mixed

get_signature_method()

figure out the signature with some defaults

private get_signature_method(mixed $request) : mixed

get_token()

try to find the token for the provided request's token key

private get_token(mixed $request, mixed $consumer, mixed $token_type = 'access') : mixed

get_version()

version 1

private get_version(mixed $request) : mixed

verify_request()

verify an api call, checks all the parameters

public verify_request(mixed $request) : mixed


\ » Classes » Twitter_OAuthServer

Clone this wiki locally