OAuthDataStore.php 659 B

123456789101112131415161718192021222324252627
  1. <?php
  2. class OAuthDataStore {
  3. function lookup_consumer($consumer_key) {
  4. // implement me
  5. }
  6. function lookup_token($consumer, $token_type, $token) {
  7. // implement me
  8. }
  9. function lookup_nonce($consumer, $token, $nonce, $timestamp) {
  10. // implement me
  11. }
  12. function new_request_token($consumer, $callback = null) {
  13. // return a new token attached to this consumer
  14. }
  15. function new_access_token($token, $consumer, $verifier = null) {
  16. // return a new access token attached to this consumer
  17. // for the user associated with this token if the request token
  18. // is authorized
  19. // should also invalidate the request token
  20. }
  21. }