Results for:

Suppor Center

ON DEMAND VIDEO API

ON DEMAND VIDEO

List of Categories

List of Categories

ListVodCategory method allows you to retrieve the full list of your categories created through the administration panel of MainStreaming.

This command returns for each category:

IdCategory that you can use in other API Calls
Category Description
Number of elements contained into.

Request

Post:
<?xml version="1.0" encoding="utf-8" ?>
    <ListVodCategory>
        <token>MY_API_KEY</token>
    </ListVodCategory>
                
{
    "token": "MY_API_KEY"
}
                

Parameters

token Specify your MainStreaming API KEY

Response:

<ArrayOfVodCategory xmlns="http://schemas.datacontract.org/2004/07/Mainsoft.Structs.Streaming" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <VodCategory>
        <Description>Category 1</Description>
        <IdCategory>1</IdCategory>
        <VideoCount>6</VideoCount>
    </VodCategory
    <VodCategory>
        <Description>Category 2</Description>
        <IdCategory>2</IdCategory>
        <VideoCount>4</VideoCount>
    </VodCategory
<ArrayOfVodCategory>
                
[
    {
        "Description":"Category 1",
        "IdCategory":1,
        "IdParentCategory":0,
        "IdVodChannel":62,
        "LongDescription":"long description 1",
        "ShortDescription":"short description 1",
        "VideoCount":6,
        "WebTvOrderIndex":null
    },
    {
        "Description":"Category 2",
        "IdCategory":2,
        "IdParentCategory":0,
        "IdVodChannel":62,
        "LongDescription":"long description 2",
        "ShortDescription":"short description 2",
        "VideoCount":4,
        "WebTvOrderIndex":null
    },
]
                        

List of Contents

List of Contents

The ListVodContentByCategory method allows you to get a list of the contents into a category.

The category ID used to perform the request, must be retrieved by an API call that returns the cateogory list: ListVodCategory Method

Request

Post:
<?xml version="1.0" encoding="utf-8" ?>
    <ListVodContentByCategory>
        <token>MY_API_KEY</token>
        <idVodCategory>1</idVodCategory>
        <sort>SORT_TITLE</sort>
        <sortmode>ASC</sortmode>
        <start>0</start>
        <limit>25</limit>
    </ListVodContentByCategory
                
{
    "token": "MY_API_KEY"
    "idVodCategory": 1
    "sort": "SORT_TITLE"
    "sortmode": "ASC"
    "start": 0
    "limit": 25
}
                

Parameters

token Specify your MainStreaming API KEY
idVodCategory Put the category ID to filter contents by the specified category
sort SORT_UPLOAD_DATE allows you to sort the contents list by upload date
SORT_TITLE allows you to sort the contents list by title
SORT_FILENAME allows you to sort the contents list by filename
SORT_DURATION allows you to sort the contents list by duration
SORT_MEDIASIZE allows you to sort the contents list by original file size
SORT_TOTALSIZE allows you to sort the contents list by total size including transcoded formats
SORT_VISUALIZATIONS allows you to sort the contents list by the number of visualizations
sortmode ASCto return the results in Ascendent order, DESC to return the results in Descendent order
start Start index to limit results
limit Limits the number of rows retrieved
You have to use Start and Limit to obtain paginated results.

Response:

<ArrayOfVodContentDTO xmlns="http://schemas.datacontract.org/2004/07/Mainsoft.Streaming.Sdk._13.model" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <VodContentDTO>
        <categoryDescription i:nil="true">
        <contentId>abcdefg</contentId>
        <duration>PT27M27S</duration>
        <filename>filename1.mp4</filename>
        <idCategory>1</idCategory>
        <longDescription i:nil="true">
        <referenceID i:nil="true">
        <relatedLinkText i:nil="true"gt;
        <relatedLinkURL i:nil="true"/>
        <shortDescription i:nil="true">
        <tags i:nil="true"/>
        <title>Titolo Video 1<title>
    </VodContentDTO
    <VodContentDTO>
        <categoryDescription i:nil="true">
        <contentId>1234567</contentId>
        <duration>PT27M27S</duration>
        <filename>filename2.mp4</filename>
        <idCategory>1</idCategory>
        <longDescription i:nil="true">
        <referenceID i:nil="true">
        <relatedLinkText i:nil="true"gt;
        <relatedLinkURL i:nil="true"/>
        <shortDescription i:nil="true">
        <tags i:nil="true"/>
        <title>Titolo Video 2<title>
    </VodContentDTO
    <VodContentDTO>
        <categoryDescription i:nil="true">
        <contentId>qwertyu</contentId>
        <duration>PT27M27S</duration>
        <filename>filename3.mp4</filename>
        <idCategory>1</idCategory>
        <longDescription i:nil="true">
        <referenceID i:nil="true">
        <relatedLinkText i:nil="true"gt;
        <relatedLinkURL i:nil="true"/>
        <shortDescription i:nil="true">
        <tags i:nil="true"/>
        <title>Titolo Video 3<title>
    </VodContentDTO
<ArrayOfVodContentDTO>
                
[
    {
        "categoryDescription":"Category 1",
        "contentId": "abcdefg",
        "duration": "PT27M27S",
        "filename": "filename1.mp4",
        "idCategory": 1,
        "ShortDescription":"short description 1",
        "longDescription":null,
        "referenceID":null,
        "relatedLinkText":null,
        "relatedLinkURL":null,
        "title": "Titolo Video 1",
        "tags": "tag1;tag2;tag3",
        "visualizations": 365,
        "uploadDate": "Date(1396880602023+0200)",
    },
    {
        "categoryDescription":"Category 2",
        "contentId": "1234567",
        "duration": "PT27M27S",
        "filename": "filename2.mp4",
        "idCategory": 1,
        "ShortDescription":"short description 2",
        "longDescription":null,
        "referenceID":null,
        "relatedLinkText":null,
        "relatedLinkURL":null,
        "title": "Titolo Video 1",
        "tags": "tag1;tag2;tag3",
        "visualizations": 365,
        "uploadDate": "Date(1396880602023+0200)",
    },
    {
        "categoryDescription":"Category 3",
        "contentId": "qwerty",
        "duration": "PT27M27S",
        "filename": "filename3.mp4",
        "idCategory": 1,
        "ShortDescription":"short description 3",
        "longDescription":null,
        "referenceID":null,
        "relatedLinkText":null,
        "relatedLinkURL":null,
        "title": "Titolo Video 1",
        "tags": "tag1;tag2;tag3",
        "visualizations": 365,
        "uploadDate": "Date(1396880602023+0200)",
    },
]
                        

List of Related Contents

List of Related Contents

The ListVodContentRelatedByContentID method allows you to get a list of the contents related to another content.

Searches are performed through the Video Tag field. Only videos with one or more exactly matching tags to the video you are searching for will be returned. Be sure to fill that field on MainStreaming administration panel.

The category ID used to perform the request, must be retrieved by an API call that returns the cateogory list: ListVodCategory Method

Request

Post:
<?xml version="1.0" encoding="utf-8" ?>
    <ListVodContentRelatedByContentID>
        <token>MY_API_KEY</token>
        <contentId>abcdefg</contentId>
        <idVodCategory>1</idVodCategory>
        <sort>SORT_TITLE</sort>
        <sortmode>ASC</sortmode>
        <start>0</start>
        <limit>25</limit>
    </ListVodContentRelatedByContentID
                
{
    "token": "MY_API_KEY"
    "contentId": "abcdefg"
    "idVodCategory": 1
    "sort": "SORT_TITLE"
    "sortmode": "ASC"
    "start": 0
    "limit": 25
}
                

Parameters

token Specify your MainStreaming API KEY
contentId Fill with the ContentID of the video you are searching for its related.
idVodCategory Put the category ID where you want to search the related contents.
It can be different from the category where is stored the video for what you are searching for.
Don't pass parameter to search in all categories.
WARNING: This filter is actually non available, please do not send the field in the request.
sort SORT_UPLOAD_DATE allows you to sort the contents list by upload date
SORT_TITLE allows you to sort the contents list by title
SORT_FILENAME allows you to sort the contents list by filename
SORT_DURATION allows you to sort the contents list by duration
SORT_MEDIASIZE allows you to sort the contents list by original file size
SORT_TOTALSIZE allows you to sort the contents list by total size including transcoded formats
SORT_VISUALIZATIONS allows you to sort the contents list by the number of visualizations
sortmode ASCto return the results in Ascendent order, DESC to return the results in Descendent order
start Start index to limit results
limit Limits the number of rows retrieved
You have to use Start and Limit to obtain paginated results.

Response:

<ArrayOfVodContentDTO xmlns="http://schemas.datacontract.org/2004/07/Mainsoft.Streaming.Sdk._13.model" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <VodContentDTO>
        <categoryDescription i:nil="true">
        <contentId>abcdefg</contentId>
        <duration>PT27M27S</duration>
        <filename>filename1.mp4</filename>
        <idCategory>1</idCategory>
        <longDescription i:nil="true">
        <referenceID i:nil="true">
        <relatedLinkText i:nil="true"gt;
        <relatedLinkURL i:nil="true"/>
        <shortDescription i:nil="true">
        <tags i:nil="true"/>
        <Titolo Video 1>
    </VodContentDTO
    <VodContentDTO>
        <categoryDescription i:nil="true">
        <contentId>1234567</contentId>
        <duration>PT27M27S</duration>
        <filename>filename2.mp4</filename>
        <idCategory>1</idCategory>
        <longDescription i:nil="true">
        <referenceID i:nil="true">
        <relatedLinkText i:nil="true"gt;
        <relatedLinkURL i:nil="true"/>
        <shortDescription i:nil="true">
        <tags i:nil="true"/>
        <Titolo Video 2>
    </VodContentDTO
    <VodContentDTO>
        <categoryDescription i:nil="true">
        <contentId>qwertyu</contentId>
        <duration>PT27M27S</duration>
        <filename>filename3.mp4</filename>
        <idCategory>1</idCategory>
        <longDescription i:nil="true">
        <referenceID i:nil="true">
        <relatedLinkText i:nil="true"gt;
        <relatedLinkURL i:nil="true"/>
        <shortDescription i:nil="true">
        <tags i:nil="true"/>
        <Titolo Video 3>
    </VodContentDTO
<ArrayOfVodContentDTO>
                
[

                    "uploadDate":"\/Date(1396880602023+0200)\/",


    {
        "categoryDescription":"Category 1",
        "contentId": "abcdefg",
        "duration": "PT27M27S",
        "filename": "filename1.mp4",
        "idCategory": 1,
        "ShortDescription":"short description 1",
        "longDescription":null,
        "referenceID":null,
        "relatedLinkText":null,
        "relatedLinkURL":null,
        "title": "Titolo Video 1",
        "tags": "tag1;tag2;tag3",
        "visualizations": 365,
        "uploadDate": "Date(1396880602023+0200)",
    },
    {
        "categoryDescription":"Category 2",
        "contentId": "1234567",
        "duration": "PT27M27S",
        "filename": "filename2.mp4",
        "idCategory": 1,
        "ShortDescription":"short description 2",
        "longDescription":null,
        "referenceID":null,
        "relatedLinkText":null,
        "relatedLinkURL":null,
        "title": "Titolo Video 1",
        "tags": "tag1;tag2;tag3",
        "visualizations": 365,
        "uploadDate": "Date(1396880602023+0200)",
    },
    {
        "categoryDescription":"Category 3",
        "contentId": "qwerty",
        "duration": "PT27M27S",
        "filename": "filename3.mp4",
        "idCategory": 1,
        "ShortDescription":"short description 3",
        "longDescription":null,
        "referenceID":null,
        "relatedLinkText":null,
        "relatedLinkURL":null,
        "title": "Titolo Video 1",
        "tags": "tag1;tag2;tag3",
        "visualizations": 365,
        "uploadDate": "Date(1396880602023+0200)",
    },
]
                        

Contents Search

Contents Search

The ListVodContentRelatedByContentID method allows you to search for videos on a specific category or on the all platform. The SearchVodContentUnPublished method search for not yet published videos, that are not linked to any category.

The category ID used to perform the request, must be retrieved by an API call that returns the cateogory list: ListVodCategory Method

SearchVodContent

Request

Post:
<?xml version="1.0" encoding="utf-8" ?>
    <SearchVodContent>
        <token>MY_API_KEY</token>
        <idVodCategory>1</idVodCategory>
        <searchString>test video</searchString>
        <sort>SORT_TITLE</sort>
        <sortmode>ASC</sortmode>
        <start>0</start>
        <limit>25</limit>
    </SearchVodContent
                
{
    "token": "MY_API_KEY"
    "idVodCategory": 1
    "searchString": "test video"
    "sort": "SORT_TITLE"
    "sortmode": "ASC"
    "start": 0
    "limit": 25
}
                

SearchVodContentUnPublished

Request

Post:
<?xml version="1.0" encoding="utf-8" ?>
    <SearchVodContentUnPublished>
        <token>MY_API_KEY</token>
        <searchString>test video</searchString>
        <sort>SORT_TITLE</sort>
        <sortmode>ASC</sortmode>
        <start>0</start>
        <limit>25</limit>
    </SearchVodContentUnPublished
                
{
    "token": "MY_API_KEY"
    "searchString": "test video"
    "sort": "SORT_TITLE"
    "sortmode": "ASC"
    "start": 0
    "limit": 25
}
                

Parameters

token Specify your MainStreaming API KEY
idVodCategory Put the category ID where you want to execute the search.
Don't pass parameter to search in all categories.
searchString Search String
sort SORT_UPLOAD_DATE allows you to sort the contents list by upload date
SORT_TITLE allows you to sort the contents list by title
SORT_FILENAME allows you to sort the contents list by filename
SORT_DURATION allows you to sort the contents list by duration
SORT_MEDIASIZE allows you to sort the contents list by original file size
SORT_TOTALSIZE allows you to sort the contents list by total size including transcoded formats
SORT_VISUALIZATIONS allows you to sort the contents list by the number of visualizations
sortmode ASCto return the results in Ascendent order, DESC to return the results in Descendent order
start Start index to limit results
limit Limits the number of rows retrieved
You have to use Start and Limit to obtain paginated results.

Response:

<ArrayOfVodContentDTO xmlns="http://schemas.datacontract.org/2004/07/Mainsoft.Streaming.Sdk._13.model" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <VodContentDTO>
        <categoryDescription i:nil="true">
        <contentId>abcdefg</contentId>
        <duration>PT27M27S</duration>
        <filename>filename1.mp4</filename>
        <idCategory>1</idCategory>
        <longDescription i:nil="true">
        <referenceID i:nil="true">
        <relatedLinkText i:nil="true"gt;
        <relatedLinkURL i:nil="true"/>
        <shortDescription i:nil="true">
        <tags i:nil="true"/>
        <Titolo Video 1>
    </VodContentDTO
    <VodContentDTO>
        <categoryDescription i:nil="true">
        <contentId>1234567</contentId>
        <duration>PT27M27S</duration>
        <filename>filename2.mp4</filename>
        <idCategory>1</idCategory>
        <longDescription i:nil="true">
        <referenceID i:nil="true">
        <relatedLinkText i:nil="true"gt;
        <relatedLinkURL i:nil="true"/>
        <shortDescription i:nil="true">
        <tags i:nil="true"/>
        <Titolo Video 2>
    </VodContentDTO
    <VodContentDTO>
        <categoryDescription i:nil="true">
        <contentId>qwertyu</contentId>
        <duration>PT27M27S</duration>
        <filename>filename3.mp4</filename>
        <idCategory>1</idCategory>
        <longDescription i:nil="true">
        <referenceID i:nil="true">
        <relatedLinkText i:nil="true"gt;
        <relatedLinkURL i:nil="true"/>
        <shortDescription i:nil="true">
        <tags i:nil="true"/>
        <Titolo Video 3>
    </VodContentDTO
<ArrayOfVodContentDTO>
                
[
    {
        "categoryDescription":"Category 1",
        "contentId": "abcdefg",
        "duration": "PT27M27S",
        "filename": "filename1.mp4",
        "idCategory": 1,
        "ShortDescription":"short description 1",
        "longDescription":null,
        "referenceID":null,
        "relatedLinkText":null,
        "relatedLinkURL":null,
        "title": "Titolo Video 1",
        "tags": "tag1;tag2;tag3",
        "visualizations": 365,
        "uploadDate": "Date(1396880602023+0200)",
    },
    {
        "categoryDescription":"Category 2",
        "contentId": "1234567",
        "duration": "PT27M27S",
        "filename": "filename2.mp4",
        "idCategory": 1,
        "ShortDescription":"short description 2",
        "longDescription":null,
        "referenceID":null,
        "relatedLinkText":null,
        "relatedLinkURL":null,
        "title": "Titolo Video 1",
        "tags": "tag1;tag2;tag3",
        "visualizations": 365,
        "uploadDate": "Date(1396880602023+0200)",
    },
    {
        "categoryDescription":"Category 3",
        "contentId": "qwerty",
        "duration": "PT27M27S",
        "filename": "filename3.mp4",
        "idCategory": 1,
        "ShortDescription":"short description 3",
        "longDescription":null,
        "referenceID":null,
        "relatedLinkText":null,
        "relatedLinkURL":null,
        "title": "Titolo Video 1",
        "tags": "tag1;tag2;tag3",
        "visualizations": 365,
        "uploadDate": "Date(1396880602023+0200)",
    },
]
                        

Contents Publish

Contents Publish

The MoveVodContentToCategory method allows you to publish an unpublished video and set its category, or move a video to a different category.

The category ID used to perform the request, must be retrieved by an API call that returns the cateogory list: ListVodCategory Method

Request

Post:
<?xml version="1.0" encoding="utf-8" ?>
    <MoveVodContentToCategory>
        <token>MY_API_KEY</token>
        <contentId>abcdefg</contentId>
        <idVodCategory>1</idVodCategory>
    </MoveVodContentToCategory
                
{
    "token": "MY_API_KEY"
    "contentId": "abcdefg"
    "idVodCategory": 1
}
                

Parameters

token Specify your MainStreaming API KEY
contentId Fill with the ContentID of the video you are searching for its related.
idVodCategory Put the category ID where you want to search the related contents.
It can be different from the category where is stored the video for what you are searching for.
Don't pass parameter to search in all categories.
WARNING: This filter is actually non available, please do not send the field in the request.

Response:

The response is a boolean value set to true if the operation has been completed successfully.

Content Unpublish

Content Unpublish

The VodContentUnpublish method allows you to set a content as unpublished and remove it from category.

Request

Post:
<?xml version="1.0" encoding="utf-8" ?>
    <VodContentUnpublish>
        <token>MY_API_KEY</token>
        <contentId>abcdefg</contentId>
    </VodContentUnpublish
                
{
    "token": "MY_API_KEY"
    "contentId": "abcdefg"
}
                

Parameters

token Specify your MainStreaming API KEY
contentId Fill with the ContentID of the video you are searching for its related.

Response:

The response is a boolean value set to true if the operation has been completed successfully.

Single Content

Single Content

The method GetVodContentByContentID allow you to get a single content using its contentID

Request

Post:
<?xml version="1.0" encoding="utf-8" ?>
    <GetVodContentByContentID>
        <token>MY_API_KEY</token>
        <contentId>abcdefg</contentId>
    </GetVodContentByContentID>
                
{
    "token": "MY_API_KEY"
    "contentId": "abcdefg"
}
                

Parameters

token Specify your MainStreaming API KEY
contentId Specify the contentID of the video you want to get.
You have to use Start and Limit to obtain paginated results.

Response:

<VodContentDTO xmlns="http://schemas.datacontract.org/2004/07/Mainsoft.Streaming.Sdk._13.model" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <contentId>abcdefg</contentId>
    <duration>PT27M27S</duration>
    <filename>filename1.mp4</filename>
    <idCategory>1</idCategory>
    <longDescription i:nil="true">
    <referenceID i:nil="true">
    <relatedLinkText i:nil="true">
    <relatedLinkURL i:nil="true"/>
    <shortDescription i:nil="true">
    <tags i:nil="true"/>
    <title>Video Title 1</title>
<ArrayOfVodContentDTO>
                            
                        {
"categoryDescription":"Category 1",
    "contentId": "abcdefg",
    "duration": "PT27M27S",
    "filename": "filename1.mp4",
    "idCategory": 1,
    "ShortDescription":"short description 1",
    "longDescription":null,
    "referenceID":null,
    "relatedLinkText":null,
    "relatedLinkURL":null,
    "title": "Video Title 1",
    "tags": "tag1;tag2;tag3",
    "visualizations": 365,
    "uploadDate": "Date(1396880602023+0200)",
},

Content Delete

Content Delete

The method GetVodContentByContentID allow you to get a single content using its contentID

Request

Post:
<?xml version=\"1.0\" encoding=\"utf-8\" ?>
    <DeleteVodContent>
        <token>MY_API_KEY</token>
        <contentId>abcdefg</contentId>
    </DeleteVodContent>
                
{
    "token": "MY_API_KEY"
    "contentId": "abcdefg"
}
                

Parameters

token Specify your MainStreaming API KEY
contentId Specify the contentID of the video you want to delete.

Update Metadata

Update Metadata

The method UpdateVodContentMeta permits to update metadata of the video.

Command returns:

Boolean value: TRUE if was correctly updated

Request

Post:
<?xml version=\"1.0\" encoding=\"utf-8\" ?>
    <UpdateVodContentMeta>
        <token>MY_API_KEY</token>
        <contentId>abcdefg</contentId>
        <title>Title<title>
        <shortDescription>Short Description<shortDescription>
        <longDescription>Long Description<longDescription>
        <tags>Tags<tags>
        <customAttribute1>Custom Attribute 1<customAttribute1>
        <customAttribute2>Custom Attribute 2<customAttribute2>
        <customAttribute3>Custom Attribute 3<customAttribute3>
        <customAttribute4>Custom Attribute 4<customAttribute4>
        <customAttribute5>Custom Attribute 5<customAttribute5>
        <customAttribute6>Custom Attribute 6<customAttribute6>
        <customAttribute7>Custom Attribute 7<customAttribute7>
        <customAttribute8>Custom Attribute 8<customAttribute8>
        <customAttribute9>Custom Attribute 9<customAttribute9>
        <customAttribute10>Custom Attribute 10<customAttribute10>
    </UpdateVodContentMeta>
                
{
    "token": "MY_API_KEY"
    "contentId": "abcdefg"
    "title": "Title",
    "shortDescription": "Short Description",
    "longDescription: "Long Description",
    "tags:" "tag1;tag2;tag3",
    "customAttribute1": "Custom Attribute 1",
    "customAttribute2": "Custom Attribute 2",
    "customAttribute3": "Custom Attribute 3",
    "customAttribute4": "Custom Attribute 4",
    "customAttribute5": "Custom Attribute 5",
    "customAttribute6": "Custom Attribute 6",
    "customAttribute7": "Custom Attribute 7",
    "customAttribute8": "Custom Attribute 8",
    "customAttribute9": "Custom Attribute 9",
    "customAttribute10": "Custom Attribute 10"
}
                

Parameters

token Specify your MainStreaming API KEY
title Title
shortDescription Short Description
longDescription Long Description
tags Tags
token Specify your MainStreaming API KEY
customAttribute1 Custom Attribute 1
customAttribute2 Custom Attribute 2
customAttribute3 Custom Attribute 3
customAttribute4 Custom Attribute 4
customAttribute5 Custom Attribute 5
customAttribute6 Custom Attribute 6
customAttribute7 Custom Attribute 7
customAttribute8 Custom Attribute 8
customAttribute9 Custom Attribute 9
customAttribute10 Custom Attribute 10

Download Content

Download Content

The method CreateDownloaderSession permits to create a temporary link for downloading a file. The link has a duration of five minutes and two access, when one of the two conditions expires you have to create another link by recalling the CreateDownloaderSession service.

Request

Post:
<?xml version="1.0" encoding="utf-8" ?>
    <GetVodContentByContentID>
        <token>MY_API_KEY</token>
        <contentId>abcdefg</contentId>
    </GetVodContentByContentID
                
{
    "token": "MY_API_KEY"
    "contentId": "abcdefg"
}
                

Parameters

token Specify your MainStreaming API KEY
contentId Specify the contentID of the video you want to get.
You have to use Start and Limit to obtain paginated results.

Response:

<DownloadSessionDTO xmlns="http://schemas.datacontract.org/2004/07/Mainsoft.Streaming.Sdk._13.model" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <downloadPath>http://video.mainstreaming.tv/download/contentId?dlToken=abcdefghijklmnopqrstuvwxyz</downloadPath>
    <token>MY_API_KEY</token>
<DownloadSessionDTO>
                            
                        {
"categoryDescription":"Category 1",
    "downloadPath": "http://video.mainstreaming.tv/download/contentId?dlToken=abcdefghijklmnopqrstuvwxyz",
    "token": "MY_API_KEY",
},

Create Vod Category

Create Vod Category

The VodCategoryCreate method permits to create a category for video on demand files.

Method returns the id of the new category

Request

Post:
<?xml version=\"1.0\" encoding=\"utf-8\" ?>
    <VodCategoryCreate>
        <token>MY_API_KEY</token>
        <title>title</title>
    </VodCategoryCreate>
                
{
    "token": "MY_API_KEY"
    "title": "title"
}
                

Parameters

token Specify your MainStreaming API KEY
title Fill with the title of the video category

Response:

The response is a long that is the id of the new category

Update Vod Category

Update Vod Category

The VodCategoryUpdate method permits to update a category.

Method returns true if the call is executed correctly.

Request

Post:
<?xml version=\"1.0\" encoding=\"utf-8\" ?>
    <VodCategoryUpdate>
        <token>MY_API_KEY</token>
        <idVodCategory>idVodCategory</idVodCategory>
        <newTitle>title</newTitle>
    </VodCategoryUpdate>
                
{
    "token": "MY_API_KEY"
    "idVodCategory": idVodCategory
    "newTitle": "title"
}
                

Parameters

token Specify your MainStreaming API KEY
idVodCategory Fill with the id of the video category
newTitle Fill with the title of the video category

Response:

The response is a boolean, true if the call is executed correctly

Delete Vod Category

Delete Vod Category

The VodCategoryDelete method permits to delete a category.

Method returns true if the call is executed correctly.

Request

Post:
<?xml version=\"1.0\" encoding=\"utf-8\" ?>
    <VodCategoryDelete>
        <token>MY_API_KEY</token>
        <idVodCategory>idVodCategory</idVodCategory>
    </VodCategoryDelete>
                
{
    "token": "MY_API_KEY"
    "idVodCategory": idVodCategory
}
                

Parameters

token Specify your MainStreaming API KEY
idVodCategory Fill with the id of the video category

Response:

The response is a boolean, true if the call is executed correctly
keyboard_arrow_up