public function get_signable_parameters() {/*{{{*/
    // Grab all parameters
    $params = $this->parameters;

    // Remove oauth_signature if present
    if (isset($params['oauth_signature'])) {
      unset($params['oauth_signature']);
    }

    // Urlencode both keys and values
    $keys = OAuthUtil::urlencode_rfc3986(array_keys($params));
    $values = OAuthUtil::urlencode_rfc3986(array_values($params));
    $params = array_combine($keys, $values);

    // Sort by keys (natsort)
    uksort($params, 'strcmp');

    // Generate key=value pairs
    $pairs = array();
    foreach ($params as $key=>$value ) {
      if (is_array($value)) {
        // If the value is an array, it's because there are multiple
        // with the same key, sort them, then add all the pairs
        natsort($value);
        foreach ($value as $v2) {
          $pairs[] = $key . '=' . $v2;
        }
      } else {
        $pairs[] = $key . '=' . $value;
      }
    }

    // Return the pairs, concated with &
    return implode('&', $pairs);
  }
public function get_signable_parameters() {/*{{{*/
    // Grab all parameters
    $params = $this->parameters;

    // Remove oauth_signature if present
    if (isset($params['oauth_signature'])) {
      unset($params['oauth_signature']);
    }

    // Urlencode both keys and values
    $keys = OAuthUtil::urlencode_rfc3986(array_keys($params));
    $values = OAuthUtil::urlencode_rfc3986(array_values($params));
    $params = array_combine($keys, $values);

    // Sort by keys (natsort)
    uksort($params, 'strcmp');

    // Generate key=value pairs
    $pairs = array();
    foreach ($params as $key=>$value ) {
      if (is_array($value)) {
        // If the value is an array, it's because there are multiple
        // with the same key, sort them, then add all the pairs
        natsort($value);
        foreach ($value as $v2) {
          $pairs[] = $key . '=' . $v2;
        }
      } else {
        $pairs[] = $key . '=' . $value;
      }
    }

    // Return the pairs, concated with &
    return implode('&', $pairs);
  }
public function get_signable_parameters ( ) { /*{{{*/ // Grab all parameters $ params = $ this -> parameters ; // Remove oauth_signature if present if ( isset ( $ params [ 'oauth_signature' ] ) ) { unset ( $ params [ 'oauth_signature' ] ) ; } // Urlencode both keys and values $ keys = OAuthUtil :: urlencode_rfc3986 ( array_keys ( $ params ) ) ; $ values = OAuthUtil :: urlencode_rfc3986 ( array_values ( $ params ) ) ; $ params = array_combine ( $ keys , $ values ) ; // Sort by keys (natsort) uksort ( $ params , 'strcmp' ) ; // Generate key=value pairs $ pairs = array ( ) ; foreach ( $ params as $ key => $ value ) { if ( is_array ( $ value ) ) { // If the value is an array, it's because there are multiple // with the same key, sort them, then add all the pairs natsort ( $ value ) ; foreach ( $ value as $ v2 ) { $ pairs [ ] = $ key . '=' . $ v2 ; } } else { $ pairs [ ] = $ key . '=' . $ value ; } } // Return the pairs, concated with & return implode ( '&' , $ pairs ) ; }
Returns the normalized parameters of the request

This will be all (except oauth_signature) parameters,
sorted first by key, and if duplicate keys, then by
value.

The returned string will be all the key=value pairs
concated by &.

@return string
Returns the normalized parameters of the request