C# 클래스 DiffBot.DiffbotAPI

파일 보기 프로젝트 열기: TheRightChoyce/diffbot-csharp 1 사용 예제들

공개 메소드들

메소드 설명
Article ( string url, bool useHtml = false ) : DiffBotArticleResultModel

Parse out an article by URL and return a strongly typed object

ArticleGetPreview ( DiffBotArticleResultModel article ) : string

Gets a basic 300 word preview for this article, or if this is a video, returns the proper embed tag for the video contents

Frontpage ( string url, bool useHtml = false ) : DiffBotFrontpageResultModel

Parses a Frontpage

GetEndpointUrl ( string type, string url, bool useHtml = false ) : string

Constructs and returns the appropriate Url for this endpoint

보호된 메소드들

메소드 설명
DownloadUrlAsString ( string url ) : string

This grabs the raw URL and returns it in string form.

GetBodyFromHtmlString ( string html ) : string

Not yet implemented

GetTitleFromHtmlString ( string html ) : string

Returns a page's title element from a raw html string

비공개 메소드들

메소드 설명
GetWebClient ( ) : WebClient
IsValidUrl ( string url, System &uri ) : bool

Determines if the provided url is actually a valid url to parse

메소드 상세

Article() 공개 메소드

Parse out an article by URL and return a strongly typed object
public Article ( string url, bool useHtml = false ) : DiffBotArticleResultModel
url string
useHtml bool
리턴 DiffBotArticleResultModel

ArticleGetPreview() 공개 메소드

Gets a basic 300 word preview for this article, or if this is a video, returns the proper embed tag for the video contents
public ArticleGetPreview ( DiffBotArticleResultModel article ) : string
article DiffBotArticleResultModel
리턴 string

DownloadUrlAsString() 보호된 메소드

This grabs the raw URL and returns it in string form.
protected DownloadUrlAsString ( string url ) : string
url string
리턴 string

Frontpage() 공개 메소드

Parses a Frontpage
public Frontpage ( string url, bool useHtml = false ) : DiffBotFrontpageResultModel
url string
useHtml bool
리턴 DiffBotFrontpageResultModel

GetBodyFromHtmlString() 보호된 메소드

Not yet implemented
protected GetBodyFromHtmlString ( string html ) : string
html string
리턴 string

GetEndpointUrl() 공개 메소드

Constructs and returns the appropriate Url for this endpoint
public GetEndpointUrl ( string type, string url, bool useHtml = false ) : string
type string
url string
useHtml bool
리턴 string

GetTitleFromHtmlString() 보호된 메소드

Returns a page's title element from a raw html string
protected GetTitleFromHtmlString ( string html ) : string
html string
리턴 string