You are here

public function OAuthServer::verify_request in OAuth 1.0 7.3

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

verify an api call, checks all the parameters

File

lib/OAuth.php, line 572
OAuth 1.0 server and client library.

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