by Alex Legg.
So the following is a REST call to sever.php, It successfully uses the token and calls the external function:
The required parameters from the accessible external function are:
courseid => PARAM_INT
name => PARAM_TEXT
description => PARAM_RAW
enrolmentkey => PARAM_RAW
I have tried the following:
And get an error...
<EXCEPTIONclass="invalid_parameter_exception">
<ERRORCODE>invalidparameter</ERRORCODE>
<MESSAGE>Invalid parameter value detected</MESSAGE>
<DEBUGINFO>Missing required key in single structure: groups</DEBUGINFO>
</EXCEPTION>