public static function OAuthUtil::urlencode_rfc3986 in jQuery social stream 8
Same name and namespace in other branches
- 8.2 src/Twitter/OAuthUtil.php \Drupal\jquery_social_stream\Twitter\OAuthUtil::urlencode_rfc3986()
6 calls to OAuthUtil::urlencode_rfc3986()
- OAuthRequest::get_signature_base_string in src/Twitter/OAuthRequest.php
- Returns the base string of this request
- OAuthRequest::to_header in src/Twitter/OAuthRequest.php
- builds the Authorization: header
- OAuthSignatureMethod_HMAC_SHA1::build_signature in src/Twitter/OAuthSignatureMethod_HMAC_SHA1.php
- Build up the signature
NOTE: The output of this function MUST NOT be urlencoded.
the encoding is handled in OAuthRequest when the final
request is serialized
- OAuthSignatureMethod_PLAINTEXT::build_signature in src/Twitter/OAuthSignatureMethod_PLAINTEXT.php
- 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.
- OAuthToken::to_string in src/Twitter/OAuthToken.php
- 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
- src/Twitter/OAuthUtil.php, line 6
Class
- OAuthUtil
Namespace
Drupal\jquery_social_stream\Twitter
Code
public static function urlencode_rfc3986($input) {
if (is_array($input)) {
return array_map(array(
'\\Drupal\\jquery_social_stream\\Twitter\\OAuthUtil',
'urlencode_rfc3986',
), $input);
}
else {
if (is_scalar($input)) {
return str_replace('+', ' ', str_replace('%7E', '~', rawurlencode($input)));
}
else {
return '';
}
}
}