Skip to content

vetalsimplybook/simplybook_multisubsystem_callback_example_php

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Simplybook API Callback Example

This code is a callback example of Simplybook.me API Please find detailed info here. We can use Callback API in order to get details about event, for example, booking creation or change


The callback data from Simplybook will be presented in the raw post data in JSON format. The following fields are available:

booking_id - Booking ID
booking_hash - Booking hash
company - Your company login
notification_type - Notification type. Can be 'create', 'cancel', 'notify', 'change'

This example shows us that using Callback API we can get detailed info about booking and save it in the local database:

  1. get details via callback
  2. connect to Simplybook.me Company public service API using external JsonRPC library
  3. get booking details using getBookingsDetails method
  4. connect to the local SQLite database
  5. add booking details to the database

Please note: you can use another JsonRPC library or any other library in your software This example is created in order to show Callback API possibilities

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages