OEmbedProviders.Provider (OEmbed Providers v0.1.0) View Source
Represents an OEmbed provider.
Link to this section Summary
Functions
Get the OEmbedProviders.Provider.Endpoint for a Provider.
Convert a map into a OEmbedProviders.Provider struct.
Check if the given URL matches this Provider.
Construct the OEmbed endpoint URL for the given Provider and URL.
Link to this section Types
Specs
t() :: %OEmbedProviders.Provider{
endpoints: [OEmbedProviders.Provider.Endpoint.t()],
provider_name: String.t() | nil,
provider_url: String.t() | nil
}
Link to this section Functions
Specs
find_endpoint(provider :: t(), url :: String.t()) :: OEmbedProviders.Provider.Endpoint.t() | nil
Get the OEmbedProviders.Provider.Endpoint for a Provider.
Specs
Convert a map into a OEmbedProviders.Provider struct.
Specs
Check if the given URL matches this Provider.
Specs
Construct the OEmbed endpoint URL for the given Provider and URL.