]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/oauthstore.php
- Update ApiOauthAuthorizeAction to 1.0a
[quix0rs-gnu-social.git] / lib / oauthstore.php
index f3ee629fd75eb6dde84430df0931766e39748920..537667678bbf155d27ecb51e6639d9fc85cf741a 100644 (file)
@@ -55,6 +55,17 @@ class StatusNetOAuthDataStore extends OAuthDataStore
         }
     }
 
+    function getTokenByKey($token_key)
+    {
+        $t = new Token();
+        $t->tok = $token_key;
+        if ($t->find(true)) {
+            return $t;
+        } else {
+            return null;
+        }
+    }
+
     // http://oauth.net/core/1.0/#nonce
     // "The Consumer SHALL then generate a Nonce value that is unique for
     // all requests with that timestamp."