Webhooks

A webhook is a way for an app to provide other apps with real-time information. A webhook delivers data to other applications as it happens, meaning you can’t ignore this pretty cool feature, when you’re looking for immediate notifications and data synchronization.

How do webhooks work?

Webhooks are basically user defined HTTP callbacks (or small code snippets linked to a web app) which are triggered by specific events. Whenever that trigger event occurs in the source site, the webhook sees the event, collects the data, and sends it to the URL specified in the form of a HTTP request.

To put it in a nutshell, the benefits of webhooks are instant, real-time notifications.

Do I need to use webhooks?

In case xApi or SCORM standards do not really suit your needs, and you have your own web server, webhooks can be a solution for you. You need to implement a HTTP endpoint on your web server where you will receive requests with learners’ results.

Example:

In case the webhooks can’t deliver data, the learner’s progress will still be reported to Easygenerator. After 11 failed attempts to send a webhook, a learner will get the following message and can just close the course:

NOTE: Webhooks are available in the Teach/Simple course, Test/Assessment and Personalized learning templates.

IMPORTANT: Cross-origin resource sharing (CORS)

To use Easygenerator webhooks, you need to make sure that your server endpoint supports CORS. Otherwise, browser's security policies will block your requests.