You are here

public function sOAuthServer::verify_request in jQuery social stream 7

Same name and namespace in other branches
  1. 7.2 jquery_social_stream.js.inc \sOAuthServer::verify_request()

verify an api call, checks all the parameters

File

./jquery_social_stream.js.inc, line 876
JS callbacks.

Class

sOAuthServer

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