When creating a webhook there are two ways of filtering:
user can select a country for which events are emitted
user can select one or more events that are sent to a url
Webhook can also retry for up to 10 times (this is defined in webhook definition), this is only stopped when request returns 200, or when retrylimit is met
Webhook send Authorization: Api $key that can be used validate sender
Webhook send a post request containg a json holiday object as below
If there are multiple pending events, they are guaranteed to be sent in the creation order
Add support for webhooks,
There are multiple events supported:
* **created** - when a new holiday is added
* **updated** - when an existing holiday is updated
* **deleted** - when a holiday is deleted
When creating a webhook there are two ways of filtering:
* user can select a country for which events are emitted
* user can select one or more events that are sent to a url
Webhook can also retry for up to 10 times (this is defined in webhook definition), this is only stopped when request returns 200, or when retrylimit is met
Webhook send `Authorization: Api $key` that can be used validate sender
Webhook send a post request containg a json holiday object as below
```
{
event: 'created' | 'updated' | 'deleted',
holiday: {
id: uuid,
name: string,
description: string,
country: string,
date: string (yyyy-MM-dd),
is_state_holiday: bool,
is_religious_holiday: bool,
}
}
```
If there are multiple pending events, they are guaranteed to be sent in the creation order
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Add support for webhooks,
There are multiple events supported:
When creating a webhook there are two ways of filtering:
Webhook can also retry for up to 10 times (this is defined in webhook definition), this is only stopped when request returns 200, or when retrylimit is met
Webhook send
Authorization: Api $keythat can be used validate senderWebhook send a post request containg a json holiday object as below
If there are multiple pending events, they are guaranteed to be sent in the creation order