【问题标题】:"core_user_get_users_by_field" function not returning any values in Moodle API and PHP“core_user_get_users_by_field”函数在 Moodle API 和 PHP 中没有返回任何值
【发布时间】:2020-07-18 13:31:11
【问题描述】:

网址:https://www.mywebsite.com/webservice/rest/server.php?wstoken=2727a8f23c07682dcac1b5cfc6871637&wsfunction=core_user_get_users_by_field&moodlewsrestformat=json&&criteria[0][key]=email&criteria[0][value]=xxx@gmail.com

这是错误显示。

{"exception":"invalid_parameter_exception","errorcode":"invalidparameter","message":"Invalid parameter value detected","debuginfo":"Missing required key in single structure: field"}

请有人帮我解决这个问题。

【问题讨论】:

    标签: php moodle-api


    【解决方案1】:

    【讨论】:

    • 为我工作,谢谢。令我惊讶的是,所有 API 调用的记录如此糟糕。
    猜你喜欢
    • 2014-07-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多