You are here

public function OAuthServer::verify_request in OAuth 1.0 6

Same name and namespace in other branches
  1. 6.3 lib/OAuth.php \OAuthServer::verify_request()
  2. 7.3 lib/OAuth.php \OAuthServer::verify_request()

verify an api call, checks all the parameters

File

./OAuth.php, line 509

Class

OAuthServer

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,
  );
}