Lightweight YouTube v3 API Wrapper
If available in Hex, the package can be installed as:
-
Add tubex to your list of dependencies in
mix.exs
:def deps do [{:tubex, "~> 0.0.1"}] end
-
Ensure tubex is started before your application:
def application do [applications: [:tubex]] end
-
Put your config YouTube Data API Key
config :tubex, Tubex,
api_key: "< Your API Key >"
Tubex.Video.search_by_query("Cooking")