public class WxMpTemplateMsgServiceImpl extends Object implements WxMpTemplateMsgService
Created by Binary Wang on 2016-10-14.
| 构造器和说明 |
|---|
WxMpTemplateMsgServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
addTemplate(String shortTemplateId)
获得模板ID
从行业模板库选择模板到帐号后台,获得模板ID的过程可在MP中完成
详情请见: http://mp.weixin.qq.com/wiki?
|
boolean |
delPrivateTemplate(String templateId)
删除模板
删除模板可在MP中完成,为方便第三方开发者,提供通过接口调用的方式来删除某帐号下的模板
详情请见: http://mp.weixin.qq.com/wiki?
|
List<WxMpTemplate> |
getAllPrivateTemplate()
获取模板列表
获取已添加至帐号下所有模板列表,可在MP中查看模板列表信息,为方便第三方开发者,提供通过接口调用的方式来获取帐号下所有模板信息
详情请见: http://mp.weixin.qq.com/wiki?
|
WxMpTemplateIndustry |
getIndustry()
获取设置的行业信息
详情请见:http://mp.weixin.qq.com/wiki?
|
String |
sendTemplateMsg(WxMpTemplateMessage templateMessage)
发送模板消息
详情请见: http://mp.weixin.qq.com/wiki?
|
boolean |
setIndustry(WxMpTemplateIndustry wxMpIndustry)
设置所属行业
官方文档中暂未告知响应内容
详情请见:http://mp.weixin.qq.com/wiki?
|
public String sendTemplateMsg(WxMpTemplateMessage templateMessage) throws WxErrorException
WxMpTemplateMsgService发送模板消息 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN
sendTemplateMsg 在接口中 WxMpTemplateMsgServicetemplateMessage - 模板消息WxErrorException - .public boolean setIndustry(WxMpTemplateIndustry wxMpIndustry) throws WxErrorException
WxMpTemplateMsgService设置所属行业 官方文档中暂未告知响应内容 详情请见:http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN
setIndustry 在接口中 WxMpTemplateMsgServicewxMpIndustry - 行业信息WxErrorException - .public WxMpTemplateIndustry getIndustry() throws WxErrorException
WxMpTemplateMsgService获取设置的行业信息 详情请见:http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN
getIndustry 在接口中 WxMpTemplateMsgServiceWxErrorException - .public String addTemplate(String shortTemplateId) throws WxErrorException
WxMpTemplateMsgService获得模板ID 从行业模板库选择模板到帐号后台,获得模板ID的过程可在MP中完成 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN 接口地址格式:https://api.weixin.qq.com/cgi-bin/template/api_add_template?access_token=ACCESS_TOKEN
addTemplate 在接口中 WxMpTemplateMsgServiceshortTemplateId - 模板库中模板的编号,有“TM**”和“OPENTMTM**”等形式WxErrorException - .public List<WxMpTemplate> getAllPrivateTemplate() throws WxErrorException
WxMpTemplateMsgService获取模板列表 获取已添加至帐号下所有模板列表,可在MP中查看模板列表信息,为方便第三方开发者,提供通过接口调用的方式来获取帐号下所有模板信息 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN 接口地址格式:https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token=ACCESS_TOKEN
getAllPrivateTemplate 在接口中 WxMpTemplateMsgServiceWxErrorException - .public boolean delPrivateTemplate(String templateId) throws WxErrorException
WxMpTemplateMsgService删除模板 删除模板可在MP中完成,为方便第三方开发者,提供通过接口调用的方式来删除某帐号下的模板 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN 接口地址格式:https://api.weixin.qq.com/cgi-bin/template/del_private_template?access_token=ACCESS_TOKEN
delPrivateTemplate 在接口中 WxMpTemplateMsgServicetemplateId - 模板IdWxErrorException - .Copyright © 2021. All rights reserved.