Triggers and syncing info to other systems

By | September 2, 2020

SimplyBook.me has an amazing trigger system that can help users sync information to other systems. The triggers can be set to fire up on different events, or on all events. Using this method is considerably better than to use API calls to constantly look up if anything has happens.

SimplyBook.me can trigger calls on different events that happen in the system

Security of information delivery, syncing is paramount. If you can not be sure that the information will in fact be synced to the other system, then your data will by corrupt at some stage because of network incidents and there will be problems, either in operations or in data warehousing and data.

SimplyBook.me has information delivery settings so that you can make sure that syncing to your system will happen if there are network issues. This option is called Number of API tries. You can set this anywhere between 0 and 6, meaning that if 0 is used, the call will only be made once, while if 6 is used, then the SimplyBook.me trigger system will try to get contact with your Call back URL up to 6 times, with different time intervals between each call.

  • 1st, if primary call is unsuccessful happens 10 minutes later
  • 2nd, if first retry is unsuccessful happens 30 minutes later
  • 3rd, if second retry is unsuccessful happens 1 hour later
  • 4th, if third retry is unsuccessful happens 6 hour later
  • 5th, if fourth retry is unsuccessful happens 12 hour later
  • 6th, if fifth retry is unsuccessful happens 24 hour later

With this retrial sequence you can rest assured that in most cases, the data will flow over to your other system correctly, and nothing will get lost in transit.

To further facilitate the development of the syncing with other systems, the SimplyBook.me team has prepared a couple of scripts that programmers can use to facilitate the syncing operations or to create a data warehouse database for further data analysing.

Cluster system callback

In case you are using our cluster solution and if you are working with gathering data from all of the sub systems to another system or into a dataware house server, then the following script and method can be used.

https://github.com/vetalsimplybook/simplybook_multisubsystem_callback_example_php

In each sub system, in the API custom feature there should be a callback URL that includes relevant sub system login name. In the script you need to set the API keys as constants in array and that is pretty much all you need to do. Script will then run all data directly into DB that you can sort and work with as needed, per company, group or companies.

Remark that the script inserts information from calls directly into a database. You need to decide what kind of data manipulation you will do as it depends on your requirements.

Single system callback

In the case yo have only a single system with us, the following script can be used.

https://github.com/vetalsimplybook/simplybook_callback_example_php/blob/master/callback.php

Remark that the script inserts information from calls directly into a database. You need to decide what kind of data manipulation you will do as it depends on your requirements.

If you are a part of SimplyBook.me enterprise users, you will have direct access to the programmers channel, where you can ask API related questions and get quick assistance from some awesome API programmers.