Skip to content

core_users_create_users with fiddler passing JSON object as argument #2

@bobwright

Description

@bobwright

Using this sample code as my starting point:
https://github.com/moodlehq/sample-ws-clients/blob/master/JAVASCRIPT-REST/client.php
(With one exception, I'm not using moodle_users_create_users rather core_users_create_users)

I'm unable to construct an HTTP message in fiddler using a JSON param. I'm pretty much using the "users" object that contains a user object literal exactly as it is in the sample and I keep getting:
"debuginfo=Missing required key in single structure: users"

I'm able to use other core_* functions exposed in my external web services however I can't get past creating users.

I've tried putting the users object literal in the Request Body as well as including it in the query string with the same results. Any help would be appreciated.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions