You are here

public static function sOAuthUtil::urlencode_rfc3986 in jQuery social stream 7

Same name and namespace in other branches
  1. 7.2 jquery_social_stream.js.inc \sOAuthUtil::urlencode_rfc3986()
6 calls to sOAuthUtil::urlencode_rfc3986()
sOAuthRequest::get_signature_base_string in ./jquery_social_stream.js.inc
Returns the base string of this request
sOAuthRequest::to_header in ./jquery_social_stream.js.inc
builds the Authorization: header
sOAuthSignatureMethod_HMAC_SHA1::build_signature in ./jquery_social_stream.js.inc
Build up the signature NOTE: The output of this function MUST NOT be urlencoded. the encoding is handled in sOAuthRequest when the final request is serialized
sOAuthSignatureMethod_PLAINTEXT::build_signature in ./jquery_social_stream.js.inc
oauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a '&' character (ASCII code 38), even if either secret is empty. The result MUST be encoded again.
sOAuthToken::to_string in ./jquery_social_stream.js.inc
generates the basic string serialization of a token that a server would respond to request_token and access_token calls with

... See full list

File

./jquery_social_stream.js.inc, line 1054
JS callbacks.

Class

sOAuthUtil

Code

public static function urlencode_rfc3986($input) {
  if (is_array($input)) {
    return array_map(array(
      'sOAuthUtil',
      'urlencode_rfc3986',
    ), $input);
  }
  else {
    if (is_scalar($input)) {
      return str_replace('+', ' ', str_replace('%7E', '~', rawurlencode($input)));
    }
    else {
      return '';
    }
  }
}