You are here

function OAuthToken::to_string in OAuth 1.0 6.3

Same name and namespace in other branches
  1. 6 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 lib/OAuth.php

File

lib/OAuth.php, line 53
OAuth 1.0 server and client library.

Class

OAuthToken

Code

function to_string() {
  return "oauth_token=" . OAuthUtil::urlencode_rfc3986($this->key) . "&oauth_token_secret=" . OAuthUtil::urlencode_rfc3986($this->secret) . "&oauth_callback_confirmed=true";
}