Webhooks
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
Webhooks are a way for you to receive, and react to, realtime events from Wink for your account.
- Select the account you want to work with from Accounts.
- Click on
Actionsfrom the bottom of the account card and choose toManage account. - Click the
Webhookstab on the following page. - This section will list all your webhooks.
- Choose to edit an existing one or create a new one.
Example
Section titled “Example”- A booking occurs on Wink.
- The Wink event
booking.createdis dispatched. - Your system is actively listening to this event.
- Your system tracks your own set of analytics and uses this event to update its time-series database.
Create webhook
Section titled “Create webhook”Here are the steps to creating an webhook:
- From the webhooks page, click the
Create new webhookbutton. - Name Give your webhook a name. e.g. Wink Stalker
- Enable Leave as-is to be enabled.
- Entity name Link your webhook with one of your existing accounts. e.g. Cool Account
- Events Listen to the events that interest you. e.g.
booking.created - Webhook URL Enter the URL where you will be listening to events from us. e.g.
https://my.system.com/webhook/wink - Click the
Savebutton to continue.
You are redirected back to your list of webhooks and your new webhook is ready to go.
Update webhook
Section titled “Update webhook”You will need to update your app if you want to:
- Disable your webhook.
- Listen to more / less events.
- Change your listening webhook URL.
To update an existing webhook, do the following:
- Click the
Actionslink for the webhook you want to update. - Click the
Updatebutton under Actions. - Make your changes to the webhook.
- Click the
Savebutton to continue.
You are redirected back to your list of webhooks.
Remove webhook
Section titled “Remove webhook”If you have no further use for the webhook, you can go ahead and remove it.
To remove an webhook, do the following:
- Click the
Actionslink for the webhook you want to update. - Click the
Removebutton under Actions. - Click
OKbutton to confirm deletion.
You are redirected back to your list of webhooks.