GET api/WechatTemplate/AddTemplate?templateId={templateId}

后台 - 添加模板库里的模板到公众号后台

Request Information

URI Parameters

NameDescriptionTypeAdditional information
templateId

模板编号

string

Required

Body Parameters

None.

Response Information

Resource Description

后台 - 添加模板库里的模板到公众号后台

AddtemplateJsonResult
NameDescriptionTypeAdditional information
template_id

string

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:
<AddtemplateJsonResult 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 2</_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_id>sample string 1</template_id>
</AddtemplateJsonResult>