Webhooks | |
New in Tiki25, Webhooks can be used by an external system for notifying your system about a certain event or update.
To allow web applications to communicate with each other in an automated way, Webhooks allow interaction between them through the use of customized callbacks. In other words, a webhook triggers an action following an event. It allows you to receive an alert when a chosen event occurs in another system. In Tiki25, we have integrated this system because some functionalities might need these kinds of callbacks in order to finalize with the actions they serve. Initial commit: https://gitlab.com/tikiwiki/tiki/-/merge_requests/1649 |
Requirements | |
For this to work in Tiki, some configuration needs to be done but before that here is all you need:
|
Setup | |
For this to work, you have to do two steps: Into the caller systemThere, when you create a webhook, you will be asked to fill in the callback URL where the data will be retransmitted once an action has just been completed.
This file is responsible for authenticating the user via a webhook. Webhooks are automatically verified. We try to check all those defined one by one and the first one to succeed wins. If none pass the check, we return an error. You must therefore copy the secret code that will be provided to you, and that you will use in Tiki as described in the following point. Into Tiki
|
Webhook handling | |
Now that the prerequisites are done, you need to add the php code that manages the webhook in your Tiki installation.
Copy to clipboard
|
Related links | |