Poodll Trigger allows you to connect different applications to your Poodll NET or Moodle site.
There are two kinds of connections:
i) when Moodle sends data to another application, called a "trigger"
ii) when another application sends data to Moodle, called an "action"
Here are two examples of how you might use Poodll trigger
- Trigger : When a user is created in Moodle, send the user details to Mailchimp and add the user to a mailing list.
- Action: When a Stripe payment is recieved from a customer, create a Moodle user and enrol them in a course.
To use actions the non-Moodle app will need an API key (also called web token) to authenticate with Moodle. And when using middleware solutions (e.g. Zapier) that make connecting apps easier, you will also need an API key.
Moodle users can get the Poodll Trigger plugin from GitHub. Instructions on installation are there. It is already installed on Poodll NET sites.
This page explains how to get an API key.
Poodll NET Users
For Poodll NET users, when logged in as siteadmin there is an "API Key" button on the Poodll NET Manage block on the dashboard. If the block is not visible, expand the right hand column.
Clicking on the API Key button will the API Key page, click the copy button to "Copy" the API Key to your clipboard.
Moodle Users
For Moodle users, make sure that Poodll trigger is installed. And then follow these steps:
i) Create a user and assign them the site role "Manager"
ii) Visit the Web services - > External Services section in the Site administration
(it will be either under Site admin -> plugins or Site Admin -> Server)
iii) Click the "Authorized users" link under the Poodll Trigger web service
iv) Add the manager user that you just created in step i) to the (probably empty) list of Authorized users.
v) Back under the Web Services section, click the "Manage Tokens" link
vi) Add a new web service token for the manager user created in step i), and the web service "Poodll Trigger"
vi) The web service token will be listed on the "Manage Tokens" page
This video walks through the process described above: