You are here

public function OAuthRequest::get_signature_base_string in OAuth 1.0 6

Same name and namespace in other branches
  1. 6.3 lib/OAuth.php \OAuthRequest::get_signature_base_string()
  2. 7.3 lib/OAuth.php \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

./OAuth.php, line 302

Class

OAuthRequest

Code

public function get_signature_base_string() {

  /*{{{*/
  $parts = array(
    $this
      ->get_normalized_http_method(),
    $this
      ->get_normalized_http_url(),
    $this
      ->get_signable_parameters(),
  );
  $parts = array_map(array(
    'OAuthUtil',
    'urlencodeRFC3986',
  ), $parts);
  return implode('&', $parts);
}