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>Sat, 23 Feb 2019 18:42:35 -0600</pubDate>
    <lastBuildDate>Sat, 23 Feb 2019 18:42:35 -0600</lastBuildDate>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>UNL_MediaHub 0.1.0</generator>
        <managingEditor>brett.bieber@nebraska.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="dcf-bleed dcf-pt-6 dcf-pb-6 unl-bg-lightest-gray mh-feed-info">
    <div class="dcf-wrapper">

      <div class="dcf-float-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>
      <h2>UNL Department of Chemistry              </h2>

      <div class="dcf-grid dcf-col-gap-vw dcf-pt-6">
        <div class="dcf-col-100% dcf-col-25%-start@sm">
          <div class="mh-channel-thumb dcf-txt-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 class="mh-feed-stats">
              <div class="dcf-grid-full dcf-grid-thirds@md dcf-col-gap-vw">
</div>
          </div>
        </div>
        <div class="dcf-col-100% dcf-col-75%-end@sm">
          <p>UNL Department of Chemistry</p>
        </div>
      </div>
    </div>
</div>



<div class="dcf-bleed dcf-pt-6">
    <div class="dcf-wrapper dcf-pb-0">
        <div class="mh-list-header">
            <div class="dcf-grid">
                <div class="dcf-col-100% dcf-col-75%-start@sm">
                                            <h2>Recent Media</h2>
                                                        </div>
                <div class="dcf-col-100% dcf-col-25%-end@sm">
                                    </div>
            </div>
        </div>
    </div>
</div>

<div class="dcf-bleed">
    <div class="dcf-wrapper dcf-pt-0 dcf-pb-8">

        <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="dcf-list-bare mh-btn-group">

                                <li>
                <a href="https://mediahub.unl.edu/channels/1?orderby=datecreated&amp;order=DESC" class="dcf-btn dcf-btn-primary dcf-txt-3xs active">
                                            <span aria-hidden="true" class="mh-sort-filter-active"></span>
                                        Recent                                            <span class="dcf-sr-only">(currently selected)</span>
                                    </a>
            </li>
                                <li>
                <a href="https://mediahub.unl.edu/channels/1?orderby=title_a_z&amp;order=ASC" class="dcf-btn dcf-btn-primary dcf-txt-3xs ">
                                        A-Z                                    </a>
            </li>
                                <li>
                <a href="https://mediahub.unl.edu/channels/1?orderby=title_z_a&amp;order=DESC" class="dcf-btn dcf-btn-primary dcf-txt-3xs ">
                                        Z-A                                    </a>
            </li>
                                <li>
                <a href="https://mediahub.unl.edu/channels/1?orderby=popular_play_count&amp;order=DESC" class="dcf-btn dcf-btn-primary dcf-txt-3xs ">
                                        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="dcf-list-bare mh-btn-group">

                                <li>
                <a href="https://mediahub.unl.edu/channels/1?orderby=datecreated&amp;order=DESC" class="dcf-btn dcf-btn-primary dcf-txt-3xs active">
                                            <span aria-hidden="true" class="mh-sort-filter-active"></span>
                                        All                                            <span class="dcf-sr-only">(currently selected)</span>
                                    </a>
            </li>
                                <li>
                <a href="https://mediahub.unl.edu/channels/1?f=audio&amp;orderby=datecreated&amp;order=DESC" class="dcf-btn dcf-btn-primary dcf-txt-3xs ">
                                        Audio                                    </a>
            </li>
                                <li>
                <a href="https://mediahub.unl.edu/channels/1?f=video&amp;orderby=datecreated&amp;order=DESC" class="dcf-btn dcf-btn-primary dcf-txt-3xs ">
                                        Video                                    </a>
            </li>
            </ul>
</nav>
    </div>
</div>



    <div class="dcf-bleed mh-media">
        <div class="dcf-wrapper dcf-pt-8 dcf-pb-8">
            <p>Sorry, no media could be found</p>
        </div>
    </div>




<div class="dcf-bleed dcf-pt-6 unl-bg-lightest-gray mh-channel-maintainers-list">
    <div class="dcf-wrapper dcf-pt-8 dcf-pb-8">
        <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.