Channel Resource

Resource URI

https://mediahub.unl.edu/channels/{id}

Resource Properties

Property Description JSON XML
id int: A numerical id for the media. 1
link URL: The url to the media file on Media Hub. 1 1
title Text: The title of the media. 1 1
description Text: The descripton of the media. 1 1
image URL: A url to the image of the midea. 1
uidcreated Text: The UID of the user who created the channel 1
language Text: The name of the language used in the channel. 1
pubDate Date: The date the media was published. YYYY-MM-DD HH:MM:SS. 1 1
dateupdated Date: The date the media was last updated. YYYY-MM-DD HH:MM:SS. 1
lastBuildDate Date: The date and time that the feed was last built. 1
docs URL: Link to RSS specification 1
generator Text: Name and version of the generator used to generate the channel. 1
managingEditor Text: Details about the managing Editor. 1
webMaster Text: Details about the webmaster. 1
ttl Int: The maximum number of minutes the chanel has to live before referesing from the source. 1
{media} A list of the media instances in the channel. 1 1

Examples

Request

GET https://mediahub.unl.edu/channels/1?format=json

Response

                            {
    "channel": {
        "id": 1,
        "title": "UNL Department of Chemistry",
        "description": "UNL Department of Chemistry",
        "image": "https:\/\/mediahub.unl.edu\/channels\/1\/image",
        "link": "https:\/\/mediahub.unl.edu\/channels\/1",
        "pubDate": "2009-01-05 10:46:16",
        "uidcreated": "bbieber2",
        "media_count": 0
    },
    "media": {}
}
                        

Request

GET https://mediahub.unl.edu/channels/1?format=xml

Response

                            <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:itunesu='http://www.itunesu.com/feed' xmlns:itunes='http://www.itunes.com/dtds/podcast-1.0.dtd' xmlns:media='http://search.yahoo.com/mrss/' xmlns:boxee='http://boxee.tv/spec/rss/' xmlns:geo='http://www.w3.org/2003/01/geo/wgs84_pos#' xmlns:mediahub='https://mediahub.unl.edu/schema/mediahub.xsd' >
  <channel>
    <title>UNL Department of Chemistry</title>
    <link>https://mediahub.unl.edu/channels/1</link>
    <description>UNL Department of Chemistry</description>
    <language>en-us</language>
    <pubDate>Fri, 22 Sep 2017 08:25:57 -0500</pubDate>
    <lastBuildDate>Fri, 22 Sep 2017 08:25:57 -0500</lastBuildDate>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>UNL_MediaHub 0.1.0</generator>
        <managingEditor>bieber@unl.edu</managingEditor>
    <webMaster>wdn@unl.edu</webMaster>
    <ttl>5</ttl>
    <itunes:image>http://www.unl.edu/unlpub/podcasts/chemistry_podcast.png</itunes:image>
<media:keywords>chemistry</media:keywords>
<media:thumbnail>http://www.unl.edu/unlpub/podcasts/chemistry_podcast.png</media:thumbnail>
    </channel>
</rss>


                        

Request

GET https://mediahub.unl.edu/channels/1?format=partial

Response

                            <div class="wdn-band wdn-light-neutral-band mh-feed-info">
    <div class="wdn-inner-wrapper">
        <h1 class="wdn-brand wdn-pull-left">UNL Department of Chemistry</h1>
                <div class="wdn-pull-right mh-rss"><a href="?format=xml" title="RSS feed for this channel"><span class="wdn-icon-rss-squared" aria-hidden="true"></span></a></div>
        <div class="wdn-grid-set">
            <div class="bp2-wdn-col-one-fourth wdn-pull-right">
                <div class="mh-channel-thumb wdn-center">
                                                    <div>
                        <object type="image/svg+xml" data="https://mediahub.unl.edu//templates/html/css/images/channel-icon.svg">
                            <img src="https://mediahub.unl.edu//templates/html/css/images/channel-icon-white.png" alt="UNL Department of Chemistry Image">
                        </object>
                    </div>
                                </div>
            </div>
            <div class="bp2-wdn-col-three-fourths">
                <p>UNL Department of Chemistry</p>
            </div>
            <div class="bp2-wdn-col-one-fourth wdn-pull-right mh-feed-stats">
                <div class="wdn-grid-set-thirds">
</div>

            </div>

        </div>
    </div>
</div>



<div class="wdn-band">
    <div class="wdn-inner-wrapper wdn-inner-padding-no-bottom">
        <div class="mh-list-header">
            <div class="wdn-grid-set">
                <div class="bp2-wdn-col-three-fourths">
                                            <h2 class="wdn-brand clear-top">Recent Media</h2>
                                                        </div>
                <div class="bp2-wdn-col-one-fourth">
                                    </div>
            </div>
        </div>
    </div>
</div>

<div class="wdn-band">
    <div class="wdn-inner-wrapper wdn-inner-padding-no-top wdn-inner-padding-sm">

        <nav class="mh-sort-filter" aria-labelledby="mh-sort-filter-orderby">
    <span id="mh-sort-filter-orderby" class="sort-filter-title">Order by:</span>
    <ul class="mh-btn-group">

                                <li>
                <a href="https://mediahub.unl.edu/channels/1?orderby=datecreated&amp;order=DESC" class="wdn-button wdn-button-brand active">
                                            <span aria-hidden="true" class="mh-sort-filter-active"></span>
                                        Recent                                            <span class="wdn-text-hidden">(currently selected)</span>
                                    </a>
            </li>
                                <li>
                <a href="https://mediahub.unl.edu/channels/1?orderby=title_a_z&amp;order=ASC" class="wdn-button wdn-button-brand ">
                                        A-Z                                    </a>
            </li>
                                <li>
                <a href="https://mediahub.unl.edu/channels/1?orderby=title_z_a&amp;order=DESC" class="wdn-button wdn-button-brand ">
                                        Z-A                                    </a>
            </li>
                                <li>
                <a href="https://mediahub.unl.edu/channels/1?orderby=popular_play_count&amp;order=DESC" class="wdn-button wdn-button-brand ">
                                        Popular                                    </a>
            </li>
            </ul>
</nav>

        <nav class="mh-sort-filter" aria-labelledby="mh-sort-filter-filter">
    <span id="mh-sort-filter-filter" class="sort-filter-title">Filter by:</span>
    <ul class="mh-btn-group">

                                <li>
                <a href="https://mediahub.unl.edu/channels/1?orderby=datecreated&amp;order=DESC" class="wdn-button wdn-button-brand active">
                                            <span aria-hidden="true" class="mh-sort-filter-active"></span>
                                        All                                            <span class="wdn-text-hidden">(currently selected)</span>
                                    </a>
            </li>
                                <li>
                <a href="https://mediahub.unl.edu/channels/1?f=audio&amp;orderby=datecreated&amp;order=DESC" class="wdn-button wdn-button-brand ">
                                        Audio                                    </a>
            </li>
                                <li>
                <a href="https://mediahub.unl.edu/channels/1?f=video&amp;orderby=datecreated&amp;order=DESC" class="wdn-button wdn-button-brand ">
                                        Video                                    </a>
            </li>
            </ul>
</nav>
    </div>
</div>



    <div class="wdn-band mh-media">
        <div class="wdn-inner-wrapper wdn-inner-padding-sm">
            <p>Sorry, no media could be found</p>
        </div>
    </div>




<div class="wdn-band wdn-light-neutral-band mh-channel-maintainers-list">
    <div class="wdn-inner-wrapper wdn-inner-padding-sm">
        <em>This channel is maintained by: <a href="http://directory.unl.edu/people/bbieber2">bbieber2</a>, <a href="http://directory.unl.edu/people/smeranda2">smeranda2</a>, <a href="http://directory.unl.edu/people/tjanovec3">tjanovec3</a>, <a href="http://directory.unl.edu/people/tjensen2">tjensen2</a></em>
    </div>
</div>

                        

Format Information

The following is a list of formats used in MediaHub.