krz/vox-populi
A Tumblr web client.
clone: git clone https://gitbay.org/krz/vox-populi.git
main: vendor/eher/oauth/src/Eher/OAuth/OAuthDataStore.php · raw
1<?php
2
3namespace Eher\OAuth;
4
5class OAuthDataStore {
6 function lookup_consumer($consumer_key) {
7 // implement me
8 }
9
10 function lookup_token($consumer, $token_type, $token) {
11 // implement me
12 }
13
14 function lookup_nonce($consumer, $token, $nonce, $timestamp) {
15 // implement me
16 }
17
18 function new_request_token($consumer, $callback = null) {
19 // return a new token attached to this consumer
20 }
21
22 function new_access_token($token, $consumer, $verifier = null) {
23 // return a new access token attached to this consumer
24 // for the user associated with this token if the request token
25 // is authorized
26 // should also invalidate the request token
27 }
28
29}
30