You are here

public function OAuthRequest::sign_request in jQuery social stream 8

Same name and namespace in other branches
  1. 8.2 src/Twitter/OAuthRequest.php \Drupal\jquery_social_stream\Twitter\OAuthRequest::sign_request()

File

src/Twitter/OAuthRequest.php, line 240

Class

OAuthRequest

Namespace

Drupal\jquery_social_stream\Twitter

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