Moodle plugins Fetcher Plugin
This plugin install a new webservice
local_pluginsfetcher_get_information which can be use to retrieve information about installed plugins.
Important information:Please uninstall the actual plugin and reinstall with the newest version. Before the pre-build webservice could be used by default from All users if the user had the moodle/webservice:createtoken capability.
There are two optional parameters which can be combined to fetch only given data:
|type||string||Only given plugin types will be fetched|
|contribonly||int||Only additional plugins will be fetched|
- Copy this plugin to the
localdirectory of your Moodle instance:
git clone https://github.com/adpe/moodle-local_pluginsfetcher.git local/pluginsfetcher
- Visit the notifications page to complete the install process
For more information, visit MoodleDocs for installing contributed modules and plugins.
- Enable the pre-built service under Site administration / Server / Web services / External services with click on
- Add the user to be used under
- Create a
tokenfor this service
Plugins fetcherand user under Site administration / Server / Web services / Manage tokens. It's important that the user has the capability
Use e.g. Postman, CURL or simply a Browser to call https://[yourmoodle]/webservice/rest/server.php?wstoken=[yourtoken]&wsfunction=local_pluginsfetcher_get_information&moodlewsrestformat=json and get a json list of your plugins.