You are here

class sOAuthToken in jQuery social stream 7.2

Same name and namespace in other branches
  1. 7 jquery_social_stream.js.inc \sOAuthToken

Hierarchy

Expanded class hierarchy of sOAuthToken

File

./jquery_social_stream.js.inc, line 480
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

Namesort descending Modifiers Type Description Overrides
sOAuthToken::$key public property
sOAuthToken::$secret public property
sOAuthToken::to_string function generates the basic string serialization of a token that a server would respond to request_token and access_token calls with
sOAuthToken::__construct function key = the token secret = the token secret
sOAuthToken::__toString function