Sync Webservice

Maintained by Daniel Schröter
Moodle plugin for extending the Moodle Web Service API for remote course module creation and course file synchronisation.
Price option: Free

Supports Moodle 3.11-4.2 See all versions
Latest release: 2 years ago
Installations: 64
Downloads (last 90 days): 33

Frankenstyle name: local_sync_service
Local plugins

Description

This plugin for Moodle (type: local) adds serveral functions to the Moodle Web Service API. Those fuctions allow users and external services to remotely create and move new course modules. Furthermore an external service (called "Course Sync Extension Service") containing the newly added functions and other core web service functions, which are helpful to use the added functions, is added.

The plugin is developed to work with the desktop application MoodleSync, used for file synchronization between a local directory and the learning platform Moodle.

Following functions are added: Function | Description | Note -------- | -------- | -------- local_course_add_new_course_module_url |Add course module URL | local_course_add_new_course_module_resource | Add course module Resource | File needs to be uploaded with "/webservice/upload.php" web service call. local_course_add_new_course_module_directory | Add course modul Folder | Files need to be uploaded with "/webservice/upload.php" web service call. local_course_add_files_to_directory | Add files to existing folders | Files need to be uploaded with "/webservice/upload.php" web service call local_course_move_module_to_specific_position | Move a module to a dedicated position | local_course_add_new_section | Create and position a new course section |

Usage:

  • Tested on Moodle versions 3.11.4, 4.0.2, 4.1.2. and 4.2.2.
  • Usage of the "REST (returning JSON)"- web service protocol.
  • To install the plugin, you may use the in-build plugin installation interface. Or you can unzip the archive and copy the folder "sync_service" into the directory "\server\moodle\local". Afterwards restart Moodle, log-in as an admin and follow the installation process.
  • To use the added fuctions, either enable and use the added external service (file upload and file download must be allowed) or create a new external service.
  • Be aware: the plugins setting "restrictedusers" is disabled.

Contributors