OAuthConsumer.php 318 B

12345678910111213141516
  1. <?php
  2. class OAuthConsumer {
  3. public $key;
  4. public $secret;
  5. function __construct($key, $secret, $callback_url=NULL) {
  6. $this->key = $key;
  7. $this->secret = $secret;
  8. $this->callback_url = $callback_url;
  9. }
  10. function __toString() {
  11. return "OAuthConsumer[key=$this->key,secret=$this->secret]";
  12. }
  13. }