You are here

public function OAuthServer::verify_request in jQuery social stream 8.2

Same name and namespace in other branches
  1. 8 src/Twitter/OAuthServer.php \Drupal\jquery_social_stream\Twitter\OAuthServer::verify_request()

verify an api call, checks all the parameters

File

src/Twitter/OAuthServer.php, line 68

Class

OAuthServer

Namespace

Drupal\jquery_social_stream\Twitter

Code

public function verify_request(&$request) {
  $this
    ->get_version($request);
  $consumer = $this
    ->get_consumer($request);
  $token = $this
    ->get_token($request, $consumer, "access");
  $this
    ->check_signature($request, $consumer, $token);
  return array(
    $consumer,
    $token,
  );
}