GET api/WechatTemplate/GetAllTemplate

后台 - 获取公众号模板消息列表

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

后台 - 获取公众号模板消息列表

GetPrivateTemplateJsonResult
NameDescriptionTypeAdditional information
template_list

Collection of GetPrivateTemplate_TemplateItem

None.

errcode

ReturnCode

None.

ErrorCodeValue

integer

None.

errmsg

string

None.

P2PData

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:
<GetPrivateTemplateJsonResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Senparc.Weixin.MP.AdvancedAPIs.TemplateMessage">
  <_x003C_P2PData_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/Senparc.Weixin.Entities" />
  <_x003C_errmsg_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/Senparc.Weixin.Entities">sample string 1</_x003C_errmsg_x003E_k__BackingField>
  <_x003C_errcode_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/Senparc.Weixin.Entities">请求成功</_x003C_errcode_x003E_k__BackingField>
  <template_list>
    <GetPrivateTemplate_TemplateItem>
      <content>sample string 5</content>
      <deputy_industry>sample string 4</deputy_industry>
      <example>sample string 6</example>
      <primary_industry>sample string 3</primary_industry>
      <template_id>sample string 1</template_id>
      <title>sample string 2</title>
    </GetPrivateTemplate_TemplateItem>
    <GetPrivateTemplate_TemplateItem>
      <content>sample string 5</content>
      <deputy_industry>sample string 4</deputy_industry>
      <example>sample string 6</example>
      <primary_industry>sample string 3</primary_industry>
      <template_id>sample string 1</template_id>
      <title>sample string 2</title>
    </GetPrivateTemplate_TemplateItem>
  </template_list>
</GetPrivateTemplateJsonResult>