tub_ex v0.2.0 TubEx.Channel

Provide access to the /channels are of YouTube API

Summary

Types

t()

Type that represents TubEx.Channel struct

Functions

Fetch contents details

Search channel from youtube via query

Types

t()
t() :: %TubEx.Channel{channel_id: charlist, description: charlist, etag: charlist, published_at: charlist, thumbnails: map, title: charlist}

Type that represents TubEx.Channel struct.

Functions

get(channel_id, opts \\ [])

Fetch contents details

Example:

iex> TubEx.Channel.get("_J4QPz52Sfo")
{ :ok, %TubEx.Channel{} }
search(query, opts \\ [])
search(charlist, Keyword.t) :: {atom, [TubEx.Channel.t], map}

Search channel from youtube via query.

Examples

Get channels by query:

iex> TubEx.Channel.search("The great debates")
{ :ok, [%TubEx.Channel{}, ...], meta_map }

Custom query parameters:

iex> TubEx.Channel.search("The great debates", [
  paramKey: paramValue,
  ...
])
{ :ok, [%TubEx.Channel{}, ...], meta_map }