X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=twitter%2Fvendor%2Fabraham%2Ftwitteroauth%2Fsrc%2FToken.php;fp=twitter%2Fvendor%2Fabraham%2Ftwitteroauth%2Fsrc%2FToken.php;h=140c1eccced46fae3833a8b9e497d8febb16826d;hb=d18bb44f8a58b0aa8ecd82eab25caca3f9f574b6;hp=0000000000000000000000000000000000000000;hpb=01738518a25392aefea8586463121024ae3a1a4c;p=friendica-addons.git diff --git a/twitter/vendor/abraham/twitteroauth/src/Token.php b/twitter/vendor/abraham/twitteroauth/src/Token.php new file mode 100644 index 00000000..140c1ecc --- /dev/null +++ b/twitter/vendor/abraham/twitteroauth/src/Token.php @@ -0,0 +1,38 @@ +key = $key; + $this->secret = $secret; + } + + /** + * Generates the basic string serialization of a token that a server + * would respond to request_token and access_token calls with + * + * @return string + */ + public function __toString() + { + return sprintf("oauth_token=%s&oauth_token_secret=%s", + Util::urlencodeRfc3986($this->key), + Util::urlencodeRfc3986($this->secret) + ); + } +}