OEmbedProviders.oembed_url

You're seeing just the function oembed_url, go back to OEmbedProviders module for more information.

Specs

oembed_url(url :: String.t()) :: {:ok, String.t()} | {:error, any()}

Construct the OEmbed endpoint URL for the given URL.

iex(1)> OEmbedProviders.oembed_url("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
{:ok,
 "https://www.youtube.com/oembed?format=json&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ"}
iex(2)> OEmbedProviders.oembed_url("https://gleasonator.com/@alex")
{:error, :no_provider}