GithubHelp home page GithubHelp logo

moodle-local_trigger's Introduction

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

moodle-local_trigger's People

Contributors

justinhunt avatar

Stargazers

 avatar  avatar  avatar Jason Madden avatar Matt Gleeson avatar  avatar Takayuki NAGAI avatar Lewis Carr avatar

Watchers

James Cloos avatar  avatar Davor Budimir avatar Lewis Carr avatar David Hume OC avatar  avatar

moodle-local_trigger's Issues

Still supported

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".

Issue with Welcome Email Using Zapier and Custom HTML Template

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!

webhook duplicates

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.