Executing an external script after the Batch Creator finishes processing.
support, ws.webtv, clips, batch, creator, developers, scripts, webhooks, callbacks
Since WS.WebTV 2.4 it is possible to call an external script after the Batch Creator finishes processing.
How does it works?
If you specify the URL of the script in the WebTV configuration file (config/Config.inc.php), the system will call the script after the Batch Creator finishes processing.
This functionality can be complemented with the API extension. For example,
if you are integrating the WebTV with an external system, you can use these script calls (and the API) to synchronize both system.
This script is called after the Batch Creator finishes processing.
Data sent by the WebTV as POST variables:
• ids (string): JSON encoded array with the IDs of the created Clips.
• type (int): The type of the created Clips. Possible values: 0 = Standard, 1 = StreamClip VOD, 3 = EmbedClip.
Variable in configuration File:
$CLIP_ON_BC_CREATE_SCRIPT_URL = ""; // Must be an absolute URL, starting with http:// or https://