You are here

public function OAuthRequest::get_signature_base_string 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::get_signature_base_string()

Returns the base string of this request

The base string defined as the method, the url and the parameters (normalized), each urlencoded and the concated with &.

File

src/Twitter/OAuthRequest.php, line 146

Class

OAuthRequest

Namespace

Drupal\jquery_social_stream\Twitter

Code

public function get_signature_base_string() {
  $parts = array(
    $this
      ->get_normalized_http_method(),
    $this
      ->get_normalized_http_url(),
    $this
      ->get_signable_parameters(),
  );
  $parts = OAuthUtil::urlencode_rfc3986($parts);
  return implode('&', $parts);
}