justinhunt / moodle-local_trigger Goto Github PK
View Code? Open in Web Editor NEWSend events that occured to 3rd party services
Send events that occured to 3rd party services
Broadcast Moodle events to pre-registered webhooks ------------------------------------------ This has been designed for use with Zapier but could be used in other situations too. Installation -------------- Download,unzip,rename Or git clone the plugin folder "trigger" into the [path/to/moodle]/local folder. Usage -------------- On the settings page for the plugin enter eventname and webhook (url) pairs. e.g trigger: \core\event\user_enrolment_deleted webhook: https://hooks.zapier.com/hooks/catch/1020304/v9plzv/ If the 5 slots are too few, you can add more by increasing the trigger count setting on the same page. After changing any of the settings on the settings page, you will need to: i) visit your site's notifications page to make sure the new setting does not need to be "installed." If so, just let Moodle do that for you. ii) "purge all caches" for any changes to be reflected. Do that at: site admin->debugging->purge all caches Using with Zapier -------------- The trigger plugin is used by the Poodll NET zapier app. This allows you to connect over 5000 different SaaS apps via their APIs to a Poodll NET/Moodle site. https://zapier.com/apps/poodll-net/integrations If you do not use Poodll NET you can still use the Poodll NET Zapier app with your own Moodle site. You will need to create a web services user on your Moodle site, and then generate a web token that can be pasted into Zapier as the Poodll NET API key. Documentation for how to do that is here: https://support.poodll.com/en/support/solutions/articles/19000141629-poodll-trigger-api-key-web-token Justin https://poodll.com
Is this plugin still supported?
The readme.txt file still says "It has been tested on Moodle 3.1 but should probably work in Moodle 2.7 or greater".
Hi Justin,
First, thank you for your excellent work on the local trigger plugin. It's been incredibly helpful for integrating Moodle with Zapier.
I'm encountering an issue with the welcome email when creating users via Zapier. While the custom HTML template displays correctly for manually added users, it doesn't format properly for users added through Zapier.
I found that the "MailFormat" option needs to be set to 1 in API calls for HTML emails to display correctly (https://moodle.org/mod/forum/discuss.php?d=450546#p1810711)
Could you guide me on how to set this option in the plugin?
Thank you!
Hello,
EDITED
I found it! The settings screen is located at: https://subdomain.siteurl.com/local/trigger/webhooks.php
Thank you!
Hi Justin,
I'm having an issue with the webhook creating duplicates. I'm trying to send out 2 webhooks (one for each database) when an event is triggered in moodle. Each webhook has a different URL. The issue is that I'll receive multiple copies of the same webhook for each server. In turn this bogs down the server.
could you please take a look at this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.