Get Proof of Play Data using Webhooks

Overview

The Proof of Play reports service delivers play-time data for your Graphics and Video or Corporate Graphics apps through WebHooks.

 

Contents of this guide

Set up WebHooks Server

Enable WebHooks on Enplug Dashboard

 

Set up WebHooks Server

Once configured, the proof of play feature will send periodic reports on how long each of your graphics played by sending an HTTP POST request to the webhook's Receipt URL with a JSON payload containing the report. 

Not sure how to use webhooks? Check out our easy-use Zapier tutorial.

The JSON payloads have the following format:

{
   "DeviceId":"1234abcd1234abcd1234abcd",   // unique device ID
   "AppId":"digitalsignage",               // app ID (ignore)
   "StartTime":"/Date(1451281740000)/",   // Start time of report interval (Unix time stamp)
   "EndTime":"/Date(1451285340000)/",   // End time of report interval (Unix time stamp)
   "ProofOfPlays":[          // Array of graphics/videos that played during the report
      {
         "ReferenceId":"https://enplug.com/image1.jpg",    // Url of file (will be unique)
         "AdditionalInfo":"image1.jpg",       // Name of file
         "PlayDuration":300     // Play duration of file (in seconds)
      },
      {
         "ReferenceId":"https://enplug.com/image2.jpg",
         "AdditionalInfo":"image2.jpg",
         "PlayDuration":450
      }
   ]
}

 

Enable WebHooks on Enplug Dashboard

Once you have set up a webhook server, you can take the URL you'd like to receive the payloads, and enter it into the dashboard. 

  • In the Enplug Dashboard, choose the desired Display Group from the Display Groups dropdown

mceclip5.png

  • Select the Proof of Play tab and enable the feature

mceclip0.png

  • Check the box to Send Proof of Play to your own WebHook

mceclip3.png

  • You must supply a receipt URL and a report interval (for example, 1 hour)

mceclip4.png

  • Click "Save" to apply your changes

Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk