yt_potion v0.1.3 YtPotion.Channel
Provides methods to interact with the YouTube Channels API
Summary
Functions
Returns the YouTube API response
Functions
Returns the YouTube API response
Examples
iex > YtPotion.Channel.list(%{id: "UC0PEAMcRK7Mnn2G1bCBXOWQ,UCyMafjsLsswLvsd4u_ilprQ", part: "statistics"})
{:ok,
%HTTPoison.Response{body: "{
"kind": "youtube#channelListResponse",
"etag": "\"gMxXHe-zinKdE9lTnzKu8vjcmDI/KeGCuFV_wF8Z6XHAhbUu6whFc-0\"",
"pageInfo": {
"totalResults": 2,
"resultsPerPage": 2
},
"items": [
{
"kind": "youtube#channel",
"etag": "\"gMxXHe-zinKdE9lTnzKu8vjcmDI/tMqC9AOnNDFtmDACV9EQD1PdRgE\"",
"id": "UCyMafjsLsswLvsd4u_ilprQ",
"statistics": {
"viewCount": "0",
"commentCount": "0",
"subscriberCount": "72019",
"hiddenSubscriberCount": false,
"videoCount": "0"
}
},
{
"kind": "youtube#channel",
"etag": "\"gMxXHe-zinKdE9lTnzKu8vjcmDI/2_DtWcM4_xfXufIwmhglg-w9N98\"",
"id": "UC0PEAMcRK7Mnn2G1bCBXOWQ",
"statistics": {
"viewCount": "21305557",
"commentCount": "0",
"subscriberCount": "82335",
"hiddenSubscriberCount": false,
"videoCount": "105"
}
}
]
}
",
headers: [{"Expires", "Wed, 01 Feb 2017 01:50:40 GMT"},
{"Date", "Wed, 01 Feb 2017 01:50:40 GMT"},
{"Cache-Control", "private, max-age=0, must-revalidate, no-transform"},
{"ETag", ""gMxXHe-zinKdE9lTnzKu8vjcmDI/KeGCuFV_wF8Z6XHAhbUu6whFc-0""},
{"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", "823"},
{"Server", "GSE"}, {"Alt-Svc", "quic=":443"; ma=2592000; v="35,34""}],
status_code: 200}}