class OAuthToken in OAuth 1.0 6
Same name and namespace in other branches
- 6.3 lib/OAuth.php \OAuthToken
- 7.3 lib/OAuth.php \OAuthToken
Hierarchy
- class \OAuthToken
Expanded class hierarchy of OAuthToken
File
- ./
OAuth.php, line 21
View source
class OAuthToken {
/*{{{*/
// access tokens and request tokens
public $key;
public $secret;
/**
* key = the token
* secret = the token secret
*/
function __construct($key, $secret) {
/*{{{*/
$this->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
*/
function to_string() {
/*{{{*/
return "oauth_token=" . OAuthUtil::urlencodeRFC3986($this->key) . "&oauth_token_secret=" . OAuthUtil::urlencodeRFC3986($this->secret);
}
/*}}}*/
function __toString() {
/*{{{*/
return $this
->to_string();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OAuthToken:: |
public | property | ||
OAuthToken:: |
public | property | ||
OAuthToken:: |
function | generates the basic string serialization of a token that a server would respond to request_token and access_token calls with | ||
OAuthToken:: |
function | key = the token secret = the token secret | ||
OAuthToken:: |
function |