summaryrefslogtreecommitdiff
path: root/vendor/eher/oauth/src/Eher/OAuth/Token.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/eher/oauth/src/Eher/OAuth/Token.php')
-rw-r--r--vendor/eher/oauth/src/Eher/OAuth/Token.php34
1 files changed, 0 insertions, 34 deletions
diff --git a/vendor/eher/oauth/src/Eher/OAuth/Token.php b/vendor/eher/oauth/src/Eher/OAuth/Token.php
deleted file mode 100644
index e1d9f65..0000000
--- a/vendor/eher/oauth/src/Eher/OAuth/Token.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-namespace Eher\OAuth;
-
-class Token {
- // 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=" .
- Util::urlencode_rfc3986($this->key) .
- "&oauth_token_secret=" .
- Util::urlencode_rfc3986($this->secret);
- }
-
- function __toString() {
- return $this->to_string();
- }
-}
-