diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-27 07:42:19 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-27 07:42:19 -0400 |
commit | 90b4873a00b0d8b4249a323fc84a7460024f491b (patch) | |
tree | 58a6783887b6b5fef653feed019aa1bc1e8b8baf /actions/requesttoken.php | |
parent | 47f030ef65d03dcb63f459a02598392fed71a8e4 (diff) |
client side of distributed subscription almost complete
darcs-hash:20080527114219-84dde-784ddf4d4650c17bc7a1e3e01219c6948dfc9b3d.gz
Diffstat (limited to 'actions/requesttoken.php')
-rw-r--r-- | actions/requesttoken.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/actions/requesttoken.php b/actions/requesttoken.php index 731d260ff..92b4c4234 100644 --- a/actions/requesttoken.php +++ b/actions/requesttoken.php @@ -19,9 +19,18 @@ if (!defined('LACONICA')) { exit(1); } +require_once(INSTALLDIR.'/lib/omb.php'); + class RequesttokenAction extends Action { function handle($args) { parent::handle($args); - common_server_error(_t('Not yet implemented.')); + try { + $req = OAuthRequest::from_request(); + $server = common_oauth_server(); + $token = $server->fetch_request_token($req); + print $token; + } catch (OAuthException $e) { + common_server_error($e->getMessage()); + } } } |