Methods

__construct()

__construct($data_store) 

Parameters

$data_store

add_signature_method()

add_signature_method($signature_method) 

Parameters

$signature_method

process an access_token request returns the access token on success

fetch_access_token($request) 

Parameters

$request

process a request_token request returns the request token on success

fetch_request_token($request) 

Parameters

$request

verify an api call, checks all the parameters

verify_request($request) 

Parameters

$request

check that the nonce is not repeated

check_nonce($consumer, $token, $nonce, $timestamp) 

Parameters

$consumer

$token

$nonce

$timestamp

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

check_signature($request, $consumer, $token) 

Parameters

$request

$consumer

$token

check that the timestamp is new enough

check_timestamp($timestamp) 

Parameters

$timestamp

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

get_consumer($request) 

Parameters

$request

figure out the signature with some defaults

get_signature_method($request) 

Parameters

$request

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

get_token($request, $consumer, $token_type = "access"

Parameters

$request

$consumer

$token_type

version 1

get_version($request) 

Parameters

$request

 Properties

 

$data_store

$data_store 

Default

 

$signature_methods

$signature_methods 

Default

array()
 

$timestamp_threshold

$timestamp_threshold 

Default

300
 

$version

$version 

Default

'1.0'