X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Frequesttoken.php;h=92b4c423422f53c66cd1f97acbe466e1cc1427e4;hb=22577b17edf1d901ed4f8a3089ed539d89e5f1e4;hp=731d260ffd2b36ca5d7314373f409bb931eecd1b;hpb=2fe978e1bb044a2ba8920156184dee7bb57c728b;p=quix0rs-gnu-social.git diff --git a/actions/requesttoken.php b/actions/requesttoken.php index 731d260ffd..92b4c42342 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()); + } } }