POST api/WeChatPublic/UploadMedia

上传微信公众号素材至本地服务器(单个素材上传)

Request Information

URI Parameters

None.

Body Parameters

WechatMediaUploadDto
NameDescriptionTypeAdditional information
MadiaId

微信素材id

string

None.

Secene

文件上传场景

ImageScene

None.

ThirdId

三方id

integer

None.

OImage

原图规格

ImageCanCut

None.

ThumbImages

缩略图规格

Collection of ImageBasic

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml, text/xml

Sample:
<WeChatPublicController.WechatMediaUploadDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Presentation.Controllers.Api.WeChat">
  <MadiaId>sample string 1</MadiaId>
  <OImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Image">
    <d2p1:Height>4</d2p1:Height>
    <d2p1:Width>3</d2p1:Width>
    <d2p1:X>1</d2p1:X>
    <d2p1:Y>2</d2p1:Y>
  </OImage>
  <Secene>Editor</Secene>
  <ThirdId>2</ThirdId>
  <ThumbImages xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Image">
    <d2p1:ImageBasic>
      <d2p1:Height>2</d2p1:Height>
      <d2p1:Width>1</d2p1:Width>
    </d2p1:ImageBasic>
    <d2p1:ImageBasic>
      <d2p1:Height>2</d2p1:Height>
      <d2p1:Width>1</d2p1:Width>
    </d2p1:ImageBasic>
  </ThumbImages>
</WeChatPublicController.WechatMediaUploadDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

上传微信公众号素材至本地服务器(单个素材上传)

Object

None.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />