POST api/WeChatPublic/UpdateWechatPublicConfig

后台 - 更新微信公众号配置

Request Information

URI Parameters

None.

Body Parameters

WechatPublicConfigDto
NameDescriptionTypeAdditional information
Id

integer

None.

Name

公众号名称

string

None.

QrCodeUrl

公众号二维码地址

string

None.

AppId

AppId

string

None.

AppSecret

AppSecret

string

None.

ApiToken

ApiToken

string

None.

EncodingAESKey

消息加解密密钥

string

None.

EncodeType

加密方式

WechatAESEncodingType

None.

EncodeTypeValue

加密方式

integer

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:
<WechatPublicConfigDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.WeChat">
  <ApiToken>sample string 6</ApiToken>
  <AppId>sample string 4</AppId>
  <AppSecret>sample string 5</AppSecret>
  <EncodeType>NoEncryption</EncodeType>
  <EncodingAESKey>sample string 7</EncodingAESKey>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <QrCodeUrl>sample string 3</QrCodeUrl>
</WechatPublicConfigDto>

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 'WechatPublicConfigDto'.

Response Information

Resource Description

后台 - 更新微信公众号配置

Object

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