Notifications script to log activity via API post.

I thought I would share a bunch of code I created to log notifications. When Checkfront posts back to a specific URL (Notifications > API), I am logging the information to a database. In the future I plan to build an enhanced email marketing system based on their booking data.