Call up URL with POST | When the selected event occurs, information regarding the selected event is passed in a JSON-file to the specified URL. API developers can use this data within their own API. Each POST will send an event object containing some standard data and some values specific to the type of event. Use the list below to reveal a sample response for each event type:
{
"videoManagerId": 174,
"videoManagerName": "Company Videos",
"eventExecutionTime": 1466422467227,
"eventType": "PUBLISH_PERIOD_EXPIRES",
"videoId": "CPfMCAuS5U78C4eshAaBWV",
"periodEnd": 1417089466985,
"editorEmail": ""
} |
|
{
"videoManagerId": 174,
"videoManagerName": "Company Videos",
"eventExecutionTime": 1466422467227,
"eventType": "VIDEO_UPLOADED",
"videoId": "CPfMCAuS5U78C4eshAaBWV",
"fileName": "video.mp4",
"editorEmail": "example@movingimage.com"
} |
|
{
"videoManagerId": 174,
"videoManagerName": "Company Videos",
"eventExecutionTime": 1466422467227,
"eventType": "VIDEO_CHANGED",
"videoId": "CPfMCAuS5U78C4eshAaBWV",
"fields": ["TITLE","DESCRIPTION"],
"editorEmail": ""
} |
|
{
"videoManagerId": 174,
"videoManagerName": "Company Videos",
"eventExecutionTime": 1466422467227,
"eventType": "CHANNEL_CHANGED",
"changeType": "VIDEOS_ADDED",
"channelId": 54,
"channelName": "Promo",
"videoIds": ["CPfMCAuS5U78C4eshAaBWV","7PfMCAuS5U78C4eshAaBWV"],
"editorEmail": ""
} |
|
{
"trafficBooked": 500,
"monthTraffic": 8.270144462585449e-7,
"storageAllotment": 500,
"storageUsed": 345,
"groupTraffic": [
{
"id": 1,
"name": "Company",
"traffic": 2.0675361156463623e-7,
"storage": 22
},
{
"id": 2,
"name": "Marketing",
"traffic": 2.0675361156463623e-7,
"storage": 33
},
{
"id": 3,
"name": "Documentation",
"traffic": 4.1350722312927246e-7,
"storage": 55
}
],
"editorEmail": ""
} |
|
{
"videoManagerId": 174,
"videoManagerName": "Company Videos",
"eventExecutionTime": 1503589879686,
"eventType": "SOCIAL_MEDIA_PUBLISH",
"videoId": "CPfMCAuS5U78C4eshAaBWV",
"socialMediaType": "YOUTUBE",
"publicationProfileName": "Company YouTube Profile",
"editorEmail": "example@movingimage.com"
} |
|
Note that the "editorEmail" will return an empty string unless the "User Email" toggle in the "Include User Information" field is enabled (it defaults to off). The "editorEmail" string will also always be empty for certain event types that aren't initiated by a user (e.g. monthly reports). See the Editing a Notification Rule chapter for more information. |
|