You are here

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

The request parameters, sorted and concatenated into a normalized string.

Return value

string

1 call to OAuthRequest::get_signable_parameters()
OAuthRequest::get_signature_base_string in src/Twitter/OAuthRequest.php
Returns the base string of this request

File

src/Twitter/OAuthRequest.php, line 126

Class

OAuthRequest

Namespace

Drupal\jquery_social_stream\Twitter

Code

public function get_signable_parameters() {

  // Grab all parameters
  $params = $this->parameters;

  // Remove oauth_signature if present
  // Ref: Spec: 9.1.1 ("The oauth_signature parameter MUST be excluded.")
  if (isset($params['oauth_signature'])) {
    unset($params['oauth_signature']);
  }
  return OAuthUtil::build_http_query($params);
}