API Error - Documentation Needed
Posted: Tue Oct 13, 2015 4:52 am
Hi guys!
On Docebo 4.05 the below CURL request works, however on Forma LMS I am getting an "Error: Invalid request."
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.lmslocation.com/api/rest.php ... bscription");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array("auth"=>'123@!', "idst"=>$user, "user_level"=>"student","course_id"=>$idCourse));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
Does anyone know the correct way to approach this or perhaps have an updated API reference manual?
Attached is also a screenshot of the config.
On Docebo 4.05 the below CURL request works, however on Forma LMS I am getting an "Error: Invalid request."
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.lmslocation.com/api/rest.php ... bscription");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array("auth"=>'123@!', "idst"=>$user, "user_level"=>"student","course_id"=>$idCourse));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
Does anyone know the correct way to approach this or perhaps have an updated API reference manual?
Attached is also a screenshot of the config.