Version 7.7.3

Back | 

GetPrograms

Returns a list of programs within a specific project. The project can be either a category project or a normal project. In either case, a category element will be returned to wrap the requested programs. If the project is non-category, then certain information will be blank, such as category id, category name, etc... If the project is a category project, a category id should be specified. If the category id is not specified, the results will be pulled from the first category found. Note: the default category may not contain any programs, and thus will return an empty set. Results can be paginated by using the start and end params together. Though not necessary, most requests should utilize these params as load time and the resulting stream size will be greatly reduced. This service is meant to replace GetProgramsByCategory.

URL Format

/ws/get_programs/api/{app_token}/p/{project_uuid}/catid/{category_id}/start/{start}/end/{end}/psize/{page size}/pr/{program uuid}/include_details/{true/false}/r/{referenceId}/c/{clientuuid}

Parameters

Name Req Type Description
project_uuid uuid The uuid of the project to search
app_token string The user api token
referenceId string The referenceId for the project to search (clientuuid parameter required as well)
clientuuid string The client uuid (for use with referenceId parameter)
category_id int The id of the category to search for, if working with a category project.
pr string The program uuid of the program to search for in a given category or playlist/single project, if working with a category project the program must be present in a given category.
psize int the page size for deep linking the programs (should be passed when pr(program uuid is passed)) Default is set to 10
start int The start range of Programs to return. Must be used in conjunction with end. Zero-based index
end int The end range of Programs to return. Used in conjunctions with
include_details string The flag to return asset and assetfile details. start. Will return a subset of available programs. Used primarily for pagination. Zero-based inclusive index: E.G. /start/0/end/4/ will return five programs from the beginning. Start and End params are ignored for deep linking
mode string A flag signaling return type for the service. Defaults to XML. Can be {'xml', 'json'}
sortby string The column to sort by. Can be {title, date, sortnum}
sortdir string The sort direction. Can be {asc, desc}

Possible Responses

  • 303 Programs Found
  • 318 Invalid Category ID
  • 102 Invalid app token
  • 659 Invalid Client

Example Response

<?xml version="1.0" encoding="utf-8"?>
<response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://vidego-api.multicastmedia.com/videgoWSRR" xmlns:ms="http://www.mediasuite.multicastmedia.com" xsi:schemaLocation="http://vidego-api.multicastmedia.com/videgoWSRR http://vidego-api.multicastmedia.com/videgoWSRR.xsd">
<get_programs_response>
    <success>
        <code>303</code>
        <message>Programs Found</message>
        <details/>
        <dtstamp>2018-12-15 09:32:01</dtstamp>
    </success>
    <category>
        <category_id/>
        <project_id>129905</project_id>
        <name/>
        <sortnum/>
        <parent_id/>
        <apid>248779</apid>
        <last_modified/>
        <ms:totalassets>10</ms:totalassets>
        <ms:totalreturned>1</ms:totalreturned>
        <programs>
            <program id="635015">
                <project_id>129905</project_id>
                <sortnum>1</sortnum>
                <type>video</type>
                <date_start>2012-04-30 17:39:48</date_start>
                <date_end>2024-04-30 17:39:48</date_end>
                <asset_id>980413</asset_id>
                <livestreampackageid>0</livestreampackageid>
                <uuid>x73epb3r</uuid>
                <ap_id>248779</ap_id>
                <presentation_id>0</presentation_id>
                <ishidden>0</ishidden>
                <ispublished>1</ispublished>
                <timezone>UTC</timezone>
                <geofilterid>0</geofilterid>
                <youtubepublishable>1</youtubepublishable>
                <referenceid/>
                <hasgeofilter>false</hasgeofilter>
                <filter_geo_url/>
                <thumbnail_url>https://mz-edge.stream.co.jp/thumbs/tid/w100/h74/t1335807636/3388115.jpg</thumbnail_url>
                <program_link>https://medialize.stream.co.jp/ws/get_program_info/p_x73epb3r/api_f4d84551-2e85-103a-a1ba-00e08655b9fc</program_link>
                <duration>127.802001953125</duration>
                <asset>
                    <http-smilurl>https://mz-edge.stream.co.jp/ws/get_smilv2/od/http/980413.smil</http-smilurl>
                    <hd-smilurl>https://mz-edge.stream.co.jp/ws/get_smilv2/od/hd/980413.smil</hd-smilurl>
                    <rtmp-smilurl>https://mz-edge.stream.co.jp/ws/get_smilv2/od/rtmp/980413.smil</rtmp-smilurl>
                    <asset_type>video</asset_type>
                </asset>
                <metadatas>
                    <metadata metaname="Title" display_name="Title">Baboons</metadata>
                    <metadata metaname="Description" display_name="Description"/>
                </metadatas>
            </program>
        </programs>
    </category>
    <client_uuid>69739d355baa942ebab4d61573aa08ed</client_uuid>
    <project_uuid>t8592qaq</project_uuid>
</get_programs_response>
</response>