2 namespace PayPal\Auth\Oauth;
4 // access tokens and request tokens
10 * secret = the token secret
12 function __construct($key, $secret) {
14 $this->secret = $secret;
18 * generates the basic string serialization of a token that a server
19 * would respond to request_token and access_token calls with
21 function to_string() {
22 return "oauth_token=" .
23 OAuthUtil::urlencode_rfc3986($this->key) .
24 "&oauth_token_secret=" .
25 OAuthUtil::urlencode_rfc3986($this->secret);
28 function __toString() {
29 return $this->to_string();