public function OAuthServer::fetch_request_token in jQuery social stream 8
Same name and namespace in other branches
- 8.2 src/Twitter/OAuthServer.php \Drupal\jquery_social_stream\Twitter\OAuthServer::fetch_request_token()
process a request_token request returns the request token on success
File
- src/
Twitter/ OAuthServer.php, line 27
Class
Namespace
Drupal\jquery_social_stream\TwitterCode
public function fetch_request_token(&$request) {
$this
->get_version($request);
$consumer = $this
->get_consumer($request);
// no token required for the initial token request
$token = NULL;
$this
->check_signature($request, $consumer, $token);
// Rev A change
$callback = $request
->get_parameter('oauth_callback');
$new_token = $this->data_store
->new_request_token($consumer, $callback);
return $new_token;
}