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
[ Ссылка ]
URL : [ Ссылка ]
username : xyz
password : abc
service : service123
2) Making an API Call
[ Ссылка ]
URL : [ Ссылка ]
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.
{ Moodle Arjun }: { [ Ссылка ] }
Ещё видео!