WsEmbed
Returns embed code for the vod project or live event or an asset. Embed code is url and base64 encoded. URL decode and base64 decode to get the embed
URL Format
/ws/ws_embed/api/{app_token}/mode/json/apiv/5?p={project_uuid}&v={program_uuuid}&e={event_uuid}&s={series_token}&assetid={assetid}
Parameters
Name |
Req |
Type |
Description |
app_token |
|
string |
The api token for the given account. You can find the api token when navigating through account->api accounts |
apiv |
|
integer |
The api version; only version 5 supported. |
catid |
|
int |
The id of the category to search for, if working with a category project. |
v |
|
string |
The program uuid of the program |
catid |
|
string |
category id for a category project |
e |
|
string |
event uuid for a live event |
s |
|
string |
series token for a live event |
assetid |
|
string |
assetid of the asset |
p |
|
string |
project_uuid The uuid of the vod project for which the embed is requested |
Request Headers
Possible Responses
Example Response
{
"response": {
"WsEmbedResponse": {
"embedcode": "PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiIHNyYz0iaHR0cDovL3FhLWFzcGxheWVyLnBpa3NlbC5jb20vL2tpY2tGbGFzaC9zY3JpcHRzL3N3Zm9iamVjdDIuanM%2FMiI%2BPC9zY3JpcHQ%2BCjxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0IiBzcmM9Imh0dHA6Ly9xYS1vdnAucGlrc2VsLmNvbS9qc2FwaS9jb21tb25GdW5jdGlvbnMuanMiPjwvc2NyaXB0Pgo8c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCI%2BCnZhciBjYXRlZ29yeUlkPUtpdENsb3VkQVBJLnBhcnNlUXVlcnlTdHJpbmdBcnJheShBcnJheSgiY2F0ZWdvcnlJZCIsImNhdGlkIikpO3ZhciB2aWRlb191dWlkPUtpdENsb3VkQVBJLnBhcnNlUXVlcnlTdHJpbmcoInZpZGVvX3V1aWQiKTsoZnVuY3Rpb24oKXsKdmFyIGZsYXNodmFycyA9e2F1dG9QbGF5OiJmYWxzZSIscmV2aXNpb246IjEiLHNjYWxlTU9ERToibGV0dGVyYm94Iix3aWR0aDoiOTkwIixoZWlnaH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