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 posts the notification with the appointment information as a JSON object to the cloudyour webserver endpoint
- Your Endpoint Application running on your webserver listens for the notification and processes when it comes throughwebserver application processes the JSON object
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
- capable of receiving a POST request
In this guide, we'll cover the steps to:
Anchor | ||||
---|---|---|---|---|
|
Return to Top
Example Appointment JSON Object
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 thatre endpoint is setup, 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 CRMset up the POST.
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\Jon", \"lastName\":\"snow\Snow", \"emailAddress\":\"jsnow@castleblack.mil\", \"city\":\"victoria\Victoria", \"notes\":\"\\u003cp\\u003ethis is"Jon would like a newnotification clientbefore note from LSU1\\u003c/p\\u003e\his appointment.", } \"fullName\":\"jon snow\"} }" |