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

Adding more functions to the service "My service" (local template)

$
0
0
by Oliver Obermayr.  

Hi there, recently I've started to use local_wstemplate (via rest protocol), which is called 'My service' and has only local_wstemplate_hello_world function by default. I want to add more functions to this service, namely core_course_get_contents and a function that is responsible for getting calendar events. As a tutorial I followed this guides: Adding_a_web_service_to_a_plugin and External_functions_API. But I couldn't get the way how to add above functions to the 'My service' plugin located in moodle/local/wstemplate/.

Do I need to extend wstemplate/db/services.php and wstemplate/externallib.php files respectively or create another php files? By the way there is no information and required arguments about getting calendar events in the documentation External functions API.

Any help or advice would be great.


Viewing all articles
Browse latest Browse all 2361

Trending Articles



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