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

How please to use webservices to access core functions not in the local_mobile API set

$
0
0
by Brian Merritt.  

If I go to moodle.mysite.com/admin/webservice/documentation.php I get a long list of webservice available functions, such as:

    core_user_get_users

    core_user_update_users

These functions are not available via the mobile webservices or extended mobile services logins, but they do exist in core Moodle.

Is there a way to access these functions via webservices?

All of the examples I have found are go to :

    moodle.mysite.com/login/token.php?service=moodle_service_name_here&username=myusername&password=mypassword

When I use for example service=local_mobile  I can't call the above functions - I get a list of functions I CAN call via:

    moodle.mysite.com/webservice/rest/server.php?wstoken=xxxx&moodlewsrestformat=json&wsfunction=core_webservice_get_site_info

I have tried service=core, core_moodle, moodle etc but can't find a way to get access to the other functions.

Happy to switch from rest to soap or xml if that helps.



Viewing all articles
Browse latest Browse all 2362

Trending Articles