Files
Chamilo/plugin/ims_lti/vendor/oauth1/example/access_token.php
2025-04-10 12:36:07 +02:00

15 lines
255 B
PHP

<?php
require_once("common.inc.php");
try {
$req = OAuthRequest::from_request();
$token = $test_server->fetch_access_token($req);
print $token;
} catch (OAuthException $e) {
print($e->getMessage() . "\n<hr />\n");
print_r($req);
die();
}
?>