You are here

function OAuthToken::to_string in OAuth 1.0 6

Same name and namespace in other branches
  1. 6.3 lib/OAuth.php \OAuthToken::to_string()
  2. 7.3 lib/OAuth.php \OAuthToken::to_string()

generates the basic string serialization of a token that a server would respond to request_token and access_token calls with

1 call to OAuthToken::to_string()
OAuthToken::__toString in ./OAuth.php

File

./OAuth.php, line 39

Class

OAuthToken

Code

function to_string() {

  /*{{{*/
  return "oauth_token=" . OAuthUtil::urlencodeRFC3986($this->key) . "&oauth_token_secret=" . OAuthUtil::urlencodeRFC3986($this->secret);
}