Calling a external web service

Calling a external web service

by Kurtis Mulgrew -
Number of replies: 1

Hi there,

I'm currently writing an API where I'd like Moodle to call my service, take my data and input it into the database. I'm wondering if this is possible? If so is there any examples?

Thanks

Average of ratings: -
In reply to Kurtis Mulgrew

Re: Calling a external web service

by Perry Way -

You can find a Web Service demo in Moodle's development site here: https://docs.moodle.org/dev/Web_services_API

Towards the bottom in the Example section, there's a link to GitHub where you can download the demo.

The demo is a "hello world" kind of demo and contains a client too so you can see how to call it, which is what you're looking for. Perhaps this will give you the jump start you want! 

Cheers!