private function sOAuthServer::get_token in jQuery social stream 7
Same name and namespace in other branches
- 7.2 jquery_social_stream.js.inc \sOAuthServer::get_token()
try to find the token for the provided request's token key
2 calls to sOAuthServer::get_token()
- sOAuthServer::fetch_access_token in ./
jquery_social_stream.js.inc - process an access_token request returns the access token on success
- sOAuthServer::verify_request in ./
jquery_social_stream.js.inc - verify an api call, checks all the parameters
File
- ./
jquery_social_stream.js.inc, line 946 - JS callbacks.
Class
Code
private function get_token(&$request, $consumer, $token_type = "access") {
$token_field = @$request
->get_parameter('oauth_token');
$token = $this->data_store
->lookup_token($consumer, $token_type, $token_field);
if (!$token) {
throw new sOAuthException("Invalid {$token_type} token: {$token_field}");
}
return $token;
}