Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 873 Bytes

hooks_example.rst

File metadata and controls

31 lines (29 loc) · 873 Bytes

EOX_HOOKS Settings Example

USE_EOX_HOOKS: True
EOX_HOOKS_DEFINITIONS:
{
    "post_register":
    {
        "action": "post_to_webhook_url",
        "config":
        {
            "fields": { "recipient_email": "user.pii.email" },
            "send_certificate_data": False,
            "url": "https://webhook.site",
        },
        "fail_silently": False,
        "module": "eox_hooks.actions",
    },
    "post_certificate_creation": {
        "action": "trigger_grades_assignment",
        "fail_silently": True,
        "module": "eox_hooks.actions"
    },
    "post_enrollment": {
        "action": "trigger_enrollments_creation",
        "fail_silently": False,
        "module": "eox_hooks.actions"
    }
}