To add custom webhooks navigate to Integrations section and connect the Webhooks integrations by clicking on the "Connect" button found here:
Afterwards you'll be asked for the webhook URL you want to use. You should enter them in here.
After you save your webhook URLs Fera will automatically test the connections by performing a POST request with an empty body.
There are 4 events that you can configure your webhooks for:
New Submission - This gets triggered whenever a review, photo or video is submitted together.
New Review - This gets triggered whenever a new review is submitted.
New Photo - This gets triggered whenever a new photo is submitted (for each new photo).
New Video - This gets triggered whenever a new video is submitted (for each new video).
To test a content submission you'll want to navigate to a product page on your site that is using Fera and add
?fera=showContentSubmit to the URL.
This will bring up the content submission UI for you to test submitting a review, photo and/or a video.
Your webhook is hit with a
secret_key param that represents your store's secret key. Your store's secret key can be found in your store setting section in the main tab.
By validating that the correct secret key you know that the request was sent by Fera and not someone else.
The webhook event will post data related to the event that you're reacting to: