Methods
__construct()
__construct($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)
process a request_token request
returns the request token on success
fetch_request_token($request)
verify an api call, checks all the parameters
verify_request($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)
try to find the consumer for the provided request's consumer key
get_consumer($request)
figure out the signature with some defaults
get_signature_method($request)
try to find the token for the provided request's token key
get_token($request, $consumer, $token_type)
Parameters
$request
$consumer
$token_type
version 1
get_version($request)
Properties
$signature_methods
$signature_methods
$timestamp_threshold
$timestamp_threshold