class sOAuthToken in jQuery social stream 7
Same name and namespace in other branches
- 7.2 jquery_social_stream.js.inc \sOAuthToken
Hierarchy
- class \sOAuthToken
Expanded class hierarchy of sOAuthToken
File
- ./
jquery_social_stream.js.inc, line 350 - JS callbacks.
View source
class sOAuthToken {
// 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=" . sOAuthUtil::urlencode_rfc3986($this->key) . "&oauth_token_secret=" . sOAuthUtil::urlencode_rfc3986($this->secret);
}
function __toString() {
return $this
->to_string();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
sOAuthToken:: |
public | property | ||
sOAuthToken:: |
public | property | ||
sOAuthToken:: |
function | generates the basic string serialization of a token that a server would respond to request_token and access_token calls with | ||
sOAuthToken:: |
function | key = the token secret = the token secret | ||
sOAuthToken:: |
function |