README.md

Ytx
===

## Installation

Add Ytx **and ibrowse** to your project's dependencies in `mix.exs`:

```elixir
  defp deps do
    [
      {:ibrowse, github: "cmullaparthi/ibrowse", tag: "v4.1.2"},
      {:ytx, "~> 0.0.1"}
    ]
  end
```

## Videos
```elixir
Ytx.Video.find(video_id, api_key)

iex(1)> Ytx.Video.find("zGhj36gG-T4", "xxx")
%{"categoryId" => "22", "channelId" => "UCOtNSG9FI__vHIv3-PCtlUw",
  "channelTitle" => "maspoxavida",
  "description" => "Um vídeo sobre o novo messias e creme hidratante.",
  "liveBroadcastContent" => "none",
  "localized" => [{"title", "GTA 5, Jesus e Bunda Estranha"},
   {"description", "Um vídeo sobre o novo messias e creme hidratante."}],
  "publishedAt" => "2013-10-09T00:51:37.000Z",
  "tags" => ["maspoxavida", "pecesiqueira", "pcsiqueira", "gta 5", "jesus",
   "hidratante"],
  "thumbnails" => [{"default",
    [{"url", "https://i.ytimg.com/vi/zGhj36gG-T4/default.jpg"}, {"width", 120},
     {"height", 90}]},
   {"medium",
    [{"url", "https://i.ytimg.com/vi/zGhj36gG-T4/mqdefault.jpg"},
     {"width", 320}, {"height", 180}]},
   {"high",
    [{"url", "https://i.ytimg.com/vi/zGhj36gG-T4/hqdefault.jpg"},
     {"width", 480}, {"height", 360}]},
   {"standard",
    [{"url", "https://i.ytimg.com/vi/zGhj36gG-T4/sddefault.jpg"},
     {"width", 640}, {"height", 480}]}],
  "title" => "GTA 5, Jesus e Bunda Estranha"}
```