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

Re: Moodle REST API - Postman collection

$
0
0
by Ron Meske.  

Hello All,

For Postman, use POST with the following settings:
  1. Params: blank
  2. Authentication: No Auth
  3. Body: form-data

Note: I have been using the JSON protocol, and the only body type that seems to work is form-data.

In the body, setup the following keys:

  1. wstoken
  2. wsfunction
  3. moodlewsrestformat 

Then depending on the function being called you will need to add your data.  Check the data required and the format  in the webservice documentation.  your_domain/admin/webservice/documentation.php

Hope this helps.

Regards,

Ron


Viewing all articles
Browse latest Browse all 2361

Trending Articles



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