request_token.php 256 B

1234567891011121314
  1. <?php
  2. require_once("common.inc.php");
  3. try {
  4. $req = OAuthRequest::from_request();
  5. $token = $test_server->fetch_request_token($req);
  6. print $token;
  7. } catch (OAuthException $e) {
  8. print($e->getMessage() . "\n<hr />\n");
  9. print_r($req);
  10. die();
  11. }
  12. ?>