How to Create Web Services in Moodle #moodle #webservices #api

preview_player
Показать описание
In this video you are going to learn How Web Services Infrastructure Works in Moodle.
Web services enable other systems to login to Moodle Sites and perform certain operations.

To run the web service and make it works, you can visit the end point from the browser or via curl.
For example to call a function via REST protocol, we can use below endpoints:

1) Generating a Token for Web Service

username : xyz
password : abc
service : service123

2) Making an API Call

wstoken : 04e3a50c7c60b0ffdb175c45bdecd850
wsfunction : local_custom_service_update_courses_sections
moodlewsrestformat : json
PARAM1 : 123
PARAM2 : 557
PARAM3 : 777

Read more about moodle web services here :

Read more about moodle by visiting :

Explore this sample plugin for making custom services :

I hope you gain something out of this video. Incase you got any queries, do comment the same in the comment box. Also please make sure to like this video and subscribe to my channel.
Рекомендации по теме
Комментарии
Автор

Just FYI to those using a later version than in the video, you may find that the 'web services' subcategory shown at 3:40 has moved from the plugins tab to the Server tab.

This is the case for 3.11.6 but may be the case for earlier versions too.

georgeishere
Автор

New subscriber here.Thanks for the content.please do more videos on moodle especially in development.Thanks again

astuteaarthi
Автор

thanks a lot!
part from 11:00-14:00 is crucial to understanding the whole!
give this part more attention, folks =)

itsjustaname
Автор

thank you so much, you've saved my life

fate
Автор

Thank you Sir. Please make more videos on moodle especially in development.

muhammadnaveedkhan
Автор

Great!!! You help me, so much thank you!!!😀

LMCH
Автор

Please upload videos on a regular basis. It's really necessary.

muhammadnaveed
Автор

You are on a Linux desktop, right? What is the distribution and the window manager?

varenneriocha
Автор

Can web service post to login moodle session without using SSO?

panupongsirirat
Автор

Hi, Could u pls share the custom files ie.Service.php and version.php etc

meeramolennasseril
Автор

Hello . very useful video. Kindly make tutorial for moodle mobile app plugin. or moodle mobile support for plugin.

Javed.humayun
Автор

Please make a video on How to setup Global search in moodle in webserver?

chandankumar-jpli
Автор

Hi sir, please make a video series on how to create a mod plugin in Moodle?

muhammadnaveed
Автор

I want to give discount to students if they are member on another website and also i have created api to handle request by user member id but i ma stuck on how to achive this in moodle to change the original price of course and give them discounts if they are a member please suggest me any lead

hikingmiles
Автор

Hi guys,

I need to allow students to subscribe to courses depending on the response from a third party web service. I mean the user will be allowed or not first depending on this external service.

I am new developing moodle, I know the best way is to create a plugin to handle it, but can you put me in the right direction on how would be the best way to do it? Some documentation or something similar built before.

Thanks in advance!

christianmiguez
Автор

Arjun I am not able to get web service link in the Plugin section, Can you please help me out same

rahullad
Автор

Hi, thanks for this video. But mine is not showing web service under plugins

gabrieladedayo
Автор

Me aparece el plugin en overview pero no en external services ayuda

jorgeprada
Автор

Hi, can we edit the existing functions on moodle ?

vcfaiz
Автор

How can I get the course quiz and its password via request ?

raviyerra