View Source
Inheritance
System.Object
Assembly: Umbraco.Web.dll
public abstract class EmbedProviderBase : IEmbedProvider
Properties
View Source
Declaration
public abstract string ApiEndpoint { get; }
Property Value
Type |
Description |
System.String |
|
View Source
Declaration
public abstract Dictionary<string, string> RequestParams { get; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.String> |
|
View Source
Declaration
public abstract string[] UrlSchemeRegex { get; }
Property Value
Type |
Description |
System.String[] |
|
Methods
View Source
Declaration
public virtual string DownloadResponse(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public virtual string GetEmbedProviderUrl(string url, int maxWidth, int maxHeight)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Int32 |
maxWidth |
|
System.Int32 |
maxHeight |
|
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public virtual T GetJsonResponse<T>(string url)
where T : class
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type Parameters
View Source
Declaration
public abstract string GetMarkup(string url, int maxWidth = 0, int maxHeight = 0)
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.Int32 |
maxWidth |
|
System.Int32 |
maxHeight |
|
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public virtual string GetXmlProperty(XmlDocument doc, string property)
Parameters
Type |
Name |
Description |
System.Xml.XmlDocument |
doc |
|
System.String |
property |
|
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public virtual XmlDocument GetXmlResponse(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type |
Description |
System.Xml.XmlDocument |
|