You are here

public function OAuthRequest::sign_request in OAuth 1.0 7.3

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

File

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

Class

OAuthRequest

Code

public function sign_request($signature_method, $consumer, $token) {
  $this
    ->set_parameter("oauth_signature_method", $signature_method
    ->get_name(), false);
  $signature = $this
    ->build_signature($signature_method, $consumer, $token);
  $this
    ->set_parameter("oauth_signature", $signature, false);
}