XOMNI: Experience Omni-Channel

Last Updated: May 05, 2016

The youtube video management systems provides APIs to fetch a list of video in a particular youtube channel. You can relate youtube videos with items.

Request

HTTP Method Resource URI
GET https://{tenantName}.api.xomni.com/private/youtube/channelvideos?channelId={channelId}&nextPageToken={nextPageToken}&take={takenumber}

URI Parameters

Parameter Name Description Type Conditions
ChannelId The unique ID of the channel String
nextPageToken Continuation key for getting further items String
Take The number of items that should be fetched from the collection. Number

Request Headers

Header Field Name Description
Authorization
Access or identity token taken from oauth APIs.
Sample: Bearer dc8f1dcdbe454da8a25621839a93569337522968019e4bd7becd6e01285444da
Accept
Includes minor version header.
Sample: application/vnd.xomni.api-v4-1, */*

Response

{
    "TotalItemCount":"10",
    "NextPageToken":"=CAAQR",
    "Items":
    [
       {
           "Id": "v64kB94j-Fw",
           "Title": "giik.fm Surface Buluşma Günü",
           "Description": "giik.fm olarak düzenlediğimiz Surface Buluşma Günü'nün video kaydı. Umarım izlerken sizler de eğlenirsiniz.\n\nDiğer podcast'ler için http://www.giik.fm adresini ziyaret edebilirsiniz.",
           "Published": "2012-11-23T13:02:52Z"
       },
       {
           "Id": "-M8MWMa_298",
           "Title": "Microsoft Surface RT Unboxing",
           "Description": "Build 2012 konferasında dağıtılan ve sonrasında Microsoft Store'larda da satışa açılan Surface RT cihazının kutusunu açıyoruz :) Hazır açmışken biraz da cihazı karıştırıyoruz tabi....",
           "Published": "2012-11-09T22:23:32Z"
       },
       {
           "Id": "NaIl6hwP8Ro",
           "Title": "Lumia 920 Windows Phone 8 Unboxing",
           "Description": "Build 2012 konferansında dağıtılan Lumia 920 Windows Phone 8'in kutusunu açıyor ve hızlı bir bakış atıyoruz :)",
           "Published": "2012-11-02T23:02:53Z"
       }
    ]
}

Response Body Description

Parameter Name Description Type
TotalItemCount Total count of the items in filtered collection without paging. Number
NextPageToken Continuation key for getting further items String
Id This is the unique ID for a youtube video. String
Title The title of the youtube video. String
Description The description of the youtube video. String
Published The publish date of the youtube video. Date

Response Headers

Header Field Name Description
Content-Type
Content type of the response entity. The value of this header is always application/json.

Status Codes

A successful operation returns status code 200 (OK) for GET operations. Possible response status codes are as listed below:

Status Code Description
400 (Bad Request) Take parameter is malformed.
404 (Not Found) No video found for given channel.
404 (Not Found) Given channel not found.