moved code up one level to eliminate the docs subdirectory
[acontent.git] / oauth / request_token.php
1 <?php
2 define('TR_INCLUDE_PATH', '../include/');
3 require_once(TR_INCLUDE_PATH.'vitals.inc.php');
4 require_once("common.inc.php");
5
6 try {
7   $req = OAuthRequest::from_request();
8   $token = $oauth_server->fetch_request_token($req);
9   print $token;
10 } catch (OAuthException $e) {
11   print($e->getMessage() . "\n<hr />\n");
12   print_r($req);
13   die();
14 }
15
16 ?>