Proof of Play reports provide play time data for the Graphics and Video, Corporate Graphics, and Ad Scheduler apps via WebHooks.
Setting Up WebHooks Server
Once configured, Proof of Play will send periodic reports on how long each of your graphics have been displayed by sending an HTTP POST request to a webhook's receipt URL with a JSON payload containing the report.
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
}
]
}Enabling 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.
- Log into Enplug.
- Click the Display Group drop-down in the top menu and select the desired group.
- Navigate to the Proof of Play tab and enable the feature.
- Check the Send Proof of Play to your own WebHook box.
- You must supply a receipt URL and a report interval (EX: One hour, etc.).
- Click Save.
For questions or concerns, please reach out to our Support Team at support@spectrio.com.