Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
r8 committed Sep 13, 2017
1 parent 2fdff16 commit 962d4fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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

Expand Down
10 changes: 9 additions & 1 deletion lib/oembed.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule OEmbed do
```elixir
def deps do
[{:oembed, "~> 0.1.0"}]
[{:oembed, "~> 0.2.0"}]
end
```
Expand All @@ -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 [
Expand Down

0 comments on commit 962d4fc

Please sign in to comment.