You are here

public function OAuthRequest::sign_request in OAuth 1.0 6

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

File

./OAuth.php, line 374

Class

OAuthRequest

Code

public function sign_request($signature_method, $consumer, $token) {

  /*{{{*/
  $this
    ->set_parameter("oauth_signature_method", $signature_method
    ->get_name());
  $signature = $this
    ->build_signature($signature_method, $consumer, $token);
  $this
    ->set_parameter("oauth_signature", $signature);
}