Any questions

We are happy to help!

Question about Gecko Booking?

If you are unsure whether Gecko Booking is right for you, or if you have other questions, we would love to hear from you!

All good!
Please enter your name.
All good!
Please enter your email.
All good!
All good!
Please enter your question.

Fields marked with an * are required


Guides

Trin for trin-vejledninger til opsætning og brug af systemet.

Guides - Event: Create/edit/delete

Event: Create/edit/delete

This webhook can be used to send data from events when they are created, changed and/or deleted.

On the individual webhook you choose under "Run at" whether it should run at Create event, Edit event and/or Delete event. When the action is performed, the webhook is added to a queue that is processed every 5 minutes. It can therefore take up to about 5 minutes before the webhook is sent.

There is no replacement code that tells which of the three actions was performed. It is therefore recommended to create one webhook for each action and write the action yourself as text in the JSON, for example "CREATED", "EDITED" or "DELETED". For a deleted event, the event's values are sent as they were when it was deleted.

Example of JSON that can be sent:


		{
"action": "CREATED",
"eventId": [eventId],
"eventGUID": "[eventGUID]",
"eventHeadline": "[eventHeadline]",
"eventLink": "[eventLink]",
"eventDateFrom": [eventDateShow_begin]"[eventDateFrom]"[eventDateShow_end][noEventDateShow_begin]null[noEventDateShow_end],
"eventTimeFrom": [eventDateShow_begin]"[eventTimeFrom]"[eventDateShow_end][noEventDateShow_begin]null[noEventDateShow_end],
"eventDateTo": [eventDateShow_begin]"[eventDateTo]"[eventDateShow_end][noEventDateShow_begin]null[noEventDateShow_end],
"eventTimeTo": [eventDateShow_begin]"[eventTimeTo]"[eventDateShow_end][noEventDateShow_begin]null[noEventDateShow_end],
[eventImageShow_begin]"eventImageUrl": "[eventImageUrl]",[eventImageShow_end]
"openForSignup": [openForSignupShow_begin]"[openForSignupDatetime]"[openForSignupShow_end][noopenForSignupShow_begin]null[noopenForSignupShow_end],
"signupDeadline": [signupDeadlineShow_begin]"[signupDeadlineDatetime]"[signupDeadlineShow_end][nosignupDeadlineShow_begin]null[nosignupDeadlineShow_end],
"unsubscribeDeadline": [unsubscribeShow_begin]"[unsubscribeDatetime]"[unsubscribeShow_end][nounsubscribeShow_begin]null[nounsubscribeShow_end]
}

The headline and the descriptions (see below) are inserted as written on the event, without escaping quotation marks. If a headline contains quotation marks, for example, the JSON becomes invalid. The descriptions can also contain HTML. They are therefore not included in the example.


The replacement codes in the example above will be replaced with the following data when the specific webhook runs:

  • [eventId] is replaced with the event's unique Id.
  • [eventGUID] is replaced with the event's unique GUID.
  • [eventHeadline] is replaced with the event's headline.
  • [eventDateFrom] is replaced with the event's start date in the format DD/MM-YY, for example 01/01-27 (two digits in the year).
  • [eventTimeFrom] is replaced with the event's start time in the format HH:MM.
  • [eventDateTo] is replaced with the event's end date in the format DD/MM-YY.
  • [eventTimeTo] is replaced with the event's end time in the format HH:MM.
  • [eventLink] is replaced with the link to the event's page. [eventDirectLink] is replaced with the direct link to the event.
  • [eventImageUrl] is replaced with the full URL of the event's image. If the event has no image, it is an empty gif (…/images/pixel.gif). The code must be written exactly as here, with the same uppercase and lowercase letters.
  • [openForSignupDatetime] is replaced with the date and time for opening of signup in the format DD/MM-YY HH:MM.
  • [signupDeadlineDatetime] is replaced with the date and time of the signup deadline in the format DD/MM-YY HH:MM.
  • [unsubscribeDatetime] is replaced with the date and time of the deadline for unsubscribing in the format DD/MM-YY HH:MM.
  • [seatsTotal] is replaced with the number of seats set on the event and [seatsLeft] with the number of seats left. If "Limited number of seats" is turned off, [seatsLeft] is 0, which means unlimited, while [seatsTotal] is still the saved number of seats. If "Activate signup" is turned off, the codes are not replaced and remain as text. Therefore use them in quotation marks.
  • [countSignups] is replaced with the number of signups on the event.
  • [eventDescriptionShort] is replaced with the short description, [eventDescription] with the long description (top) and [eventDescriptionBottom] with the description at the bottom. They can contain HTML.

The three dates for opening, deadline and unsubscription are the saved values and are shown even if the function is not turned on. The same applies to the dates of an event without a date. The example therefore uses show/hide blocks, so the values are only sent when the function is turned on, and are otherwise null:

  • [eventDateShow_begin] [eventDateShow_end] keeps the text in between if the event has a date, otherwise it is removed. [noEventDateShow_begin] [noEventDateShow_end] does the opposite.
  • [eventImageShow_begin] [eventImageShow_end] keeps the text if the event has an image, and the image line is left out otherwise. [noEventImageShow_begin] [noEventImageShow_end] does the opposite.
  • [openForSignupShow_begin] [openForSignupShow_end], [signupDeadlineShow_begin] [signupDeadlineShow_end] and [unsubscribeShow_begin] [unsubscribeShow_end] keep the text if opening, deadline or unsubscription is turned on. The corresponding "no" blocks, for example [noopenForSignupShow_begin] [noopenForSignupShow_end], do the opposite.

In addition to the above, you can also use replacement codes from the following category to build your own:


 


Try a Free and Non-Binding Demo of Gecko Booking & Administration

Fill out the form, and you will receive a demo as soon as possible.

All good!
Please enter the company name.
All good!
Please enter your phone number.
All good!
Please enter your name.

Fields marked with an * are required