OEmbedProviders.find_provider
You're seeing just the function
find_provider
, go back to OEmbedProviders module for more information.
Specs
find_provider(url :: String.t()) :: OEmbedProviders.Provider.t()
Get the OEmbedProviders.Provider
for a URL.
iex(2)> OEmbedProviders.find_provider("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
%OEmbedProviders.Provider{
endpoints: [
%OEmbedProviders.Provider.Endpoint{
discovery: true,
formats: [],
schemes: ["https://*.youtube.com/watch*", "https://*.youtube.com/v/*",
"https://youtu.be/*"],
url: "https://www.youtube.com/oembed"
}
],
provider_name: "YouTube",
provider_url: "https://www.youtube.com/"
}