Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2364

Calling "core_user_get_users" function using REST API

$
0
0
by Sonam Daultani.  

I am using Moodle Rest API in java to call core_user_get_users function and it is displaying the following error,
<EXCEPTION class="invalid_parameter_exception">
<ERRORCODE>invalidparameter</ERRORCODE>
<MESSAGE>Invalid parameter value detected</MESSAGE>
<DEBUGINFO>Missing required key in single structure: criteria</DEBUGINFO>
</EXCEPTION>

I tried to give criteria[0]=email, but it gave me below error,

criteria => Invalid parameter value detected: Only arrays accepted. The bad value is: 'email'


It would be highly appreciated if someone could help me in how to pass the criteria parameter ?


Viewing all articles
Browse latest Browse all 2364

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>