summaryrefslogtreecommitdiff
path: root/vendor/eher/oauth/src/Eher/OAuth/Token.php
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-01 19:32:52 -0600
committerChristian Cleberg <[email protected]>2026-03-01 19:32:52 -0600
commita98c2a4542e19ce4fb632bc32fc47c18273161cc (patch)
tree99d016c1c9f12d98d57cfec34262e7c228a1d920 /vendor/eher/oauth/src/Eher/OAuth/Token.php
parentcd8c38db601355003510e92a0936cde6b71cf849 (diff)
downloadmichelangelo-a98c2a4542e19ce4fb632bc32fc47c18273161cc.tar.gz
michelangelo-a98c2a4542e19ce4fb632bc32fc47c18273161cc.tar.bz2
michelangelo-a98c2a4542e19ce4fb632bc32fc47c18273161cc.zip
convert from PHP to Go
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();
- }
-}
-