Anchor | ||||
---|---|---|---|---|
|
By setting up a web hook, TimeTap can send you notifications anytime your clients or staff members book an appointment for your business.
Our Push Notification service consists of a 3-step process:
- A client or staff member books an appointment
- TimeTap sends a notification with the appointment information as a JSON object to the cloud
- Your Endpoint Application running on your webserver listens for the notification and processes when it comes through
Requirements:
- A webserver running an endpoint application (*Note: endpoint applications can be written in various languages, such as PHP or JavaScript. See the Amazon Web Services SDK website for compatible languages).
- A subscription to TimeTap's push notification service
In this guide, we'll cover the steps to:
Anchor | ||||
---|---|---|---|---|
|
Subscribe to TimeTap's Notification Service
When you've finished building your endpoint application, you'll need to host it in a public-facing directory on your webserver. Once you've done that, simply contact us to provide the URL where your application is hosted, and we'll subscribe your account to our notification service.
Initially, your application will receive a subscription confirmation, which your application should handle, then you'll begin receiving appointment notifications in the form of JSON objects. The individual JSON object for each appointment will contain appointment information which you can parse and do something with or pass directly on to your CRM.
Here's an example of what the Appointment Notification JSON object looks like:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ \"calendarid\":10390617, \"businessId\":20398, \"startTime\":800, \"endTime\":845, \"clientStartTime\":800, \"clientEndTime\":845, \"professional\":{ \"businessId\":20398, \"userName\":\"DrJones2\", \"email\":\"djones2@marshallcollege.edu\" \"timeZoneCode\":{ \"timeZoneId\":78, \"timeZoneCode\":\"America/New_York\", \"timeZoneDesc\":\"America/New_York\", }, \"location\":{ \"locationId\":29945, \"locationName\":\"MyOffice\", \"businessId\":20398, \"locationType\":\"Office\" }, \"reason\":{ \"reasonId\":96439, \"businessId\":20398, \"visitMinutes\":45, \"reasonDesc\":\"Service3\" }, \"client\":{ \"clientId\":2530974, \"firstName\":\"jon\", \"lastName\":\"snow\", \"emailAddress\":\"jsnow@castleblack.mil\", \"city\":\"victoria\", \"notes\":\"\\u003cp\\u003ethis is a new client note from LSU1\\u003c/p\\u003e\", \"fullName\":\"jon snow\" }" |