POST api/WeChatPublic/GetWechatOfficialAccountBlog

抓取公众号文章内容

Request Information

URI Parameters

None.

Body Parameters

文章链接

WechatLinkDto
NameDescriptionTypeAdditional information
BlogUrl

链接地址

string

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<WechatLinkDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.WeChat">
  <BlogUrl>sample string 1</BlogUrl>
</WechatLinkDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'WechatLinkDto'.

Response Information

Resource Description

抓取公众号文章内容

CommonBlogDto
NameDescriptionTypeAdditional information
Title

标题

string

None.

AuthorName

作者姓名

string

None.

ImageUrls

图片路径

Collection of string

None.

LocalImageUrls

本地图片链接

Collection of string

None.

Content

博客内容

string

None.

LocalIndexImgaeUrl

封面图片地址

string

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<CommonBlogDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Blog">
  <AuthorName>sample string 2</AuthorName>
  <Content>sample string 3</Content>
  <ImageUrls xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ImageUrls>
  <Title>sample string 1</Title>
</CommonBlogDto>