Webhooks are an easy way to get push notifications. A webhook is like an API endpoint but inverted; instead of making a call to our API, you define a callback URL to which we will POST (via HTTP) a notification whenever a user completes watching a video. Your callback URL can then execute code on your end as needed, and with the information that we post. You can think of it as defining an API endpoint for your app that will receive output from the Private Media Channel.


Example:


JSON string which we will send out once the user completes watching a video.


{  

   "Created":"Wednesday, November 05, 2014 22:15:26",

   "EventType":"Video.Complete",

   "Title":"Niche Video Media Promo",

   "Fullname":"Dominic Francis",

   "Email":"dfrancis@nichevid.com"

}