Booking.js: jQuery embeddable Booking Widget

Shares

Booking.js is an easy-to-use embedabble calendar booking widget. It’s easy to customize, works with Google Calendar, and it can be integrated seamlessly into your branding.

usage

Find Time:

# Find available time between two users
# for 2 hours within the next 2 weeks:
curl -X POST \
     -H 'Content-Type: application/json' \
     -H 'Timekit-App: demo' \
     -H 'Timekit-OutputTimestampFormat: Y-m-d H:i:s' \
     -u doc.brown@timekit.io:FluxCapacitator \
     -d '{
           "emails": [
             "[email protected]",
             "[email protected]"
           ],
           "filters": {
             "or": [
               { "specific_day": {"day": "Monday"} },
               { "specific_day_and_time": {"day": "Wednesday", "start": 10, "end": 12, "timezone": "Europe/Copenhagen"} }
             ],
             "and": [
               { "business_hours": {"timezone": "America/Los_angeles"} }
             ]
           },
           "future": "14 days",
           "length": "30 minutes"
         }' \
     https://api.timekit.io/v2/findtime

Create A Booking:

 
# Request time with Doc Brown and
# trigger a confirm/decline flow
curl -X POST \
     -H 'Content-Type: application/json' \
     -H 'Timekit-App: demo' \
     -u doc.brown@timekit.io:FluxCapacitator \
     -d '{
          "graph": "confirm_decline",
          "action": "create",
          "event": {
            "start": "2017-03-01T08:00:00+00:00",
            "end": "2017-03-01T13:00:00+00:00",
            "what": "Mens haircut",
            "where": "Sesame St, Middleburg, FL 32068, USA",
            "calendar_id": "628228b4-04c8-4599-a9d5-29a03797187f",
            "description": "Please arrive 10 minutes before you time begin"
          },
          "customer": {
            "name": "Marty McFly",
            "email": "[email protected]",
            "phone": "1-591-001-5403",
            "voip": "McFly",
            "timezone": "America/Los_Angeles"
          }
        }' \
     https://api.timekit.io/v2/bookings

Decline A Booking:

# Decline the booking and 
# notify customer by email
curl -X POST \
     -H 'Timekit-App: demo' \
     -u doc.brown@timekit.io:FluxCapacitator \
     -d '{
          "notify_customer_declined_by_email": {
            "message": "Sorry, I'm not available at that location"
          }
        }' \
     https://api.timekit.io/v2/bookings/:id/decline

Full API Reference: http://developers.timekit.io/

Subscribe to the JqueryPlugins.net mailing list:

* indicates required

Reply

Pin It on Pinterest