Enabling web services for users

It is sometimes necessary that users have to access web services directly instead of applications, for example, a developer who needs to execute test runs against the system. The process is a subset of steps already covered in the previous section and follows Users as clients with token section on the web services overview screen:

  1. Select a service.
  2. Add functions.
  3. Check the capability of the users. In addition to the protocol use capabilities, the users have to have the moodle/webservice:createtoken URL allowed.
  4. Test the service.

Get Moodle 3 Administration - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.