Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/plugin/ims_lti/vendor/oauth1/example/echo_api.php

21 lines
490 B

<?php
require_once("common.inc.php");
try {
$req = OAuthRequest::from_request();
list($consumer, $token) = $test_server->verify_request($req);
// lsit back the non-OAuth params
$total = array();
foreach($req->get_parameters() as $k => $v) {
if (substr($k, 0, 5) == "oauth") continue;
$total[] = urlencode($k) . "=" . urlencode($v);
}
print implode("&", $total);
} catch (OAuthException $e) {
print($e->getMessage() . "\n<hr />\n");
print_r($req);
die();
}
?>