Media Endlink
Deprication Warning
This document is archived and will be maintained only until September 15. Please refer to the latest documentation here for updated information.
Endlinks for media allow users to search for specific media using either tags or media IDs, but not both simultaneously.
In a multitenant environment, an external ID is required; omitting it will result in a bad request.
In a non-multitenant environment, the external ID is not needed.
After processing the request, the result is a hash that can be used to retrieve the search results later.
Base Url -
Release candidate (RC)
Media Ids search for multitenant / non multitenant:
Endpoint - /api/endlink/media
Header -
Authorization: Bearer {{YOUR-ACCESS-TOKEN}}
Content-Type: application/json
Body -
{
"mediaIds": [
{{MEDIA-ID}},
...
],
"tags": null,
"playerTags": {
{{PLAYER-TAG-KEY}}: {{PLAYER-TAG-VALUE}}
},
"timestamp": {{TIMESTAMP}},
"disableMediaAnalyticsWebhook": {{ANALYTICS-WEBHOOK-DISABLE}} //optional
}Example Curl Request -
curl --location 'https://sdk-mobile-api.truvideo.com/api/endlink/media' \
--header 'Authorization: Bearer {{YOUR-ACCESS-TOKEN}}’ \
--header 'Content-Type: application/json' \
--data '{
"mediaIds": [
{{MEDIA-ID}},
...
],
"tags": null,
"playerTags": {
{{PLAYER-TAG-KEY}}: {{PLAYER-TAG-VALUE}}
},
"timestamp": {{TIMESTAMP}},
"disableMediaAnalyticsWebhook": {{ANALYTICS-WEBHOOK-DISABLE}} //optional
}'Tags search for multitenant / non multitenant:
Endpoint - /api/endlink/media
Header -
Authorization: Bearer {{YOUR-ACCESS-TOKEN}}
Content-Type: application/json
Body -
{
"mediaIds": null,
"tags": {
{{KEY}}: {{VALUE}},
...
},
"playerTags": {
{{PLAYER-TAG-KEY}}: {{PLAYER-TAG-VALUE}}
},
"timestamp": {{TIMESTAMP}},
"disableMediaAnalyticsWebhook": {{ANALYTICS-WEBHOOK-DISABLE}} //optional
}Example Curl Request-
curl --location 'https://sdk-mobile-api.truvideo.com/api/endlink/media' \
--header 'Authorization: Bearer {{YOUR-ACCESS-TOKEN}}’ \
--header 'Content-Type: application/json' \
--data '{
"mediaIds": null,
"tags": {
{{KEY}}: {{VALUE}},
...
},
"playerTags": {
{{PLAYER-TAG-KEY}}: {{PLAYER-TAG-VALUE}}
},
"timestamp": {{TIMESTAMP}},
"disableMediaAnalyticsWebhook": {{ANALYTICS-WEBHOOK-DISABLE}} //optional
}'Response -
{
"url": "{base-path}/71F686F0949DEE6268D8EDBDC12F2CC4F9A5442BE757B4190A354E061671D634?source=advisor",
"playerTags": {
"key": "value"
}
}Last updated
Was this helpful?