OAuthToken

The All In One SEO Pack OAuthToken class.

Defined (1)

The class is defined in the following location(s).

/inc/extlib/OAuth.php  
  1. class OAuthToken { 
  2. // access tokens and request tokens 
  3. public $key; 
  4. public $secret; 
  5.  
  6. /** 
  7. * key = the token 
  8. * secret = the token secret 
  9. */ 
  10. function __construct($key, $secret) { 
  11. $this->key = $key; 
  12. $this->secret = $secret; 
  13.  
  14. /** 
  15. * generates the basic string serialization of a token that a server 
  16. * would respond to request_token and access_token calls with 
  17. */ 
  18. function to_string() { 
  19. return "oauth_token=" . 
  20. OAuthUtil::urlencode_rfc3986($this->key) . 
  21. "&oauth_token_secret=" . 
  22. OAuthUtil::urlencode_rfc3986($this->secret); 
  23.  
  24. function __toString() { 
  25. return $this->to_string();