Setup Webhooks
The module supports automatically updating courses when changes are made in Eduframe using webhooks. We highly recommend setting this up right after installation.
Create a webhook in Eduframe
- In Eduframe, go to Settings → Webhooks.
- Add a new webhook with the URL:
YOUR_WEBSITE_DOMAIN/webhook/eduframe/v1(replaceYOUR_WEBSITE_DOMAINwith your site’s domain). - Select the following events to keep your site in sync:
catalog_variant.created,catalog_variant.updated,catalog_variant.deletedproduct.created,product.updated,product.deleteduser.created,user.updated,user.deletedlabel.created,label.updated,label.deletedcourse_location.created,course_location.updated,course_location.deletedcourse_variant.created,course_variant.updated,course_variant.deletedcategory.created,category.updated,category.deleted
More information about webhooks can be found here: Configure Webhooks.
Add the webhook secret
After creating the webhook, copy the webhook secret from Eduframe and paste it in Drupal under Configuration → Web services → Eduframe → Eduframe Service in the field Webhook secret. This secures your site by only accepting webhooks sent by Eduframe.