yt_potion v0.1.3 YtPotion.Search
Provides methods to interact with the YouTube Videos API
Summary
Functions
Returns the YouTube API response
Functions
Returns the YouTube API response
Examples
iex > YtPotion.Search.list(%{part: "snippet"}, %{channelId: "UC0PEAMcRK7Mnn2G1bCBXOWQ", maxResults: "2", type: "video", order: "date")
{:ok,
%HTTPoison.Response{body: "{
"kind": "youtube#searchListResponse",
"etag": "\"gMxXHe-zinKdE9lTnzKu8vjcmDI/UFTscJErJZ5v6sBz4S4c76KNeQo\"",
"nextPageToken": "CAIQAA",
"regionCode": "US",
"pageInfo": {
"totalResults": 123,
"resultsPerPage": 2
},
"items": [
{
"kind": "youtube#searchResult",
"etag": "\"gMxXHe-zinKdE9lTnzKu8vjcmDI/-SO5eWti4TqSKXPfyLBxf4eOrhA\"",
"id": {
"kind": "youtube#video",
"videoId": "vaGoDZN8XNM"
},
"snippet": {
"publishedAt": "2016-09-13T02:00:00.000Z",
"channelId": "UC0PEAMcRK7Mnn2G1bCBXOWQ",
"title": "Jessie Graff at the National Finals: Stage 2 - American Ninja Warrior 2016",
"description": "Watch Jessie Graff's Stage 2 run. » Subscribe for More: http://bit.ly/NBCNinjaWarrior » Watch Full Episodes Free: ...",
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/vi/vaGoDZN8XNM/default.jpg",
"width": 120,
"height": 90
},
"medium": {
"url": "https://i.ytimg.com/vi/vaGoDZN8XNM/mqdefault.jpg",
"width": 320,
"height": 180
},
"high": {
"url": "https://i.ytimg.com/vi/vaGoDZN8XNM/hqdefault.jpg",
"width": 480,
"height": 360
}
},
"channelTitle": "American Ninja Warrior",
"liveBroadcastContent": "none"
}
},
{
"kind": "youtube#searchResult",
"etag": "\"gMxXHe-zinKdE9lTnzKu8vjcmDI/gO_4Y1KNQBNNcmciMFzTus_DL18\"",
"id": {
"kind": "youtube#video",
"videoId": "JjMpzTOGywQ"
},
"snippet": {
"publishedAt": "2016-09-13T02:00:00.000Z",
"channelId": "UC0PEAMcRK7Mnn2G1bCBXOWQ",
"title": "Daniel Gil at the National Finals: Stage 2 - American Ninja Warrior 2016",
"description": "Watch Daniel Gil's Stage 2 run. » Subscribe for More: http://bit.ly/NBCNinjaWarrior » Watch Full Episodes Free: ...",
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/vi/JjMpzTOGywQ/default.jpg",
"width": 120,
"height": 90
},
"medium": {
"url": "https://i.ytimg.com/vi/JjMpzTOGywQ/mqdefault.jpg",
"width": 320,
"height": 180
},
"high": {
"url": "https://i.ytimg.com/vi/JjMpzTOGywQ/hqdefault.jpg",
"width": 480,
"height": 360
}
},
"channelTitle": "American Ninja Warrior",
"liveBroadcastContent": "none"
}
}
]
}
",
headers: [{"Expires", "Wed, 01 Feb 2017 05:33:34 GMT"},
{"Date", "Wed, 01 Feb 2017 05:33:34 GMT"},
{"Cache-Control", "private, max-age=120, must-revalidate, no-transform"},
{"ETag", ""gMxXHe-zinKdE9lTnzKu8vjcmDI/UFTscJErJZ5v6sBz4S4c76KNeQo""},
{"Vary", "Origin"}, {"Vary", "X-Origin"},
{"Content-Type", "application/json; charset=UTF-8"},
{"X-Content-Type-Options", "nosniff"}, {"X-Frame-Options", "SAMEORIGIN"},
{"X-XSS-Protection", "1; mode=block"}, {"Content-Length", "2302"},
{"Server", "GSE"}, {"Alt-Svc", "quic=":443"; ma=2592000; v="35,34""}],
status_code: 200}}