diff --git a/README.md b/README.md index e7886cf..8189f92 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Add `oembed` to your list of dependencies in `mix.exs`: ```elixir def deps do - [{:oembed, "~> 0.1.0"}] + [{:oembed, "~> 0.2.0"}] end ``` @@ -35,7 +35,7 @@ end {:ok, result} = OEmbed.for("https://www.youtube.com/watch?v=dQw4w9WgXcQ") ``` -## 3rd party providers +## Custom providers You can implement modules that support provider behaviour and add them to the provider list from your app config diff --git a/lib/oembed.ex b/lib/oembed.ex index 16fac05..bcf0184 100644 --- a/lib/oembed.ex +++ b/lib/oembed.ex @@ -18,7 +18,7 @@ defmodule OEmbed do ```elixir def deps do - [{:oembed, "~> 0.1.0"}] + [{:oembed, "~> 0.2.0"}] end ``` @@ -27,6 +27,14 @@ defmodule OEmbed do ```elixir {:ok, result} = OEmbed.for("https://www.youtube.com/watch?v=dQw4w9WgXcQ") ``` + + ## Custom providers + + You can implement modules that support provider behaviour and add them to the provider list from your app config + + ```elixir + config :oembed, :providers, [MyApp.OEmbed.SomeProvider, MyApp.OEmbed.SomeOtherProvider] + ``` """ @core_providers [