public interface WxMpTemplateMsgService
模板消息接口 http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN Created by Binary Wang on 2016-10-14.
| 限定符和类型 | 方法和说明 | 
|---|---|
| String | addTemplate(String shortTemplateId)已过时。 
 请使用 addTemplate(java.lang.String, java.util.List) | 
| String | addTemplate(String shortTemplateId,
           List<String> keywordNameList)
 获得模板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? | 
boolean setIndustry(WxMpTemplateIndustry wxMpIndustry) throws WxErrorException
设置所属行业 官方文档中暂未告知响应内容 详情请见:http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN
wxMpIndustry - 行业信息WxErrorException - .WxMpTemplateIndustry getIndustry() throws WxErrorException
获取设置的行业信息 详情请见:http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN
WxErrorException - .String sendTemplateMsg(WxMpTemplateMessage templateMessage) throws WxErrorException
发送模板消息 详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN
templateMessage - 模板消息WxErrorException - .@Deprecated String addTemplate(String shortTemplateId) throws WxErrorException
获得模板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
shortTemplateId - 模板库中模板的编号,有“TM**”和“OPENTMTM**”等形式WxErrorException - .String addTemplate(String shortTemplateId, List<String> keywordNameList) throws WxErrorException
获得模板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
shortTemplateId - 模板库中模板的编号,有“TM**”和“OPENTMTM**”等形式,对于类目模板,为纯数字IDkeywordNameList - 选用的类目模板的关键词,按顺序传入,如果为空,或者关键词不在模板库中,会返回40246错误码WxErrorException - .List<WxMpTemplate> getAllPrivateTemplate() throws WxErrorException
获取模板列表 获取已添加至账号下所有模板列表,可在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
WxErrorException - .boolean delPrivateTemplate(String templateId) throws WxErrorException
删除模板 删除模板可在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
templateId - 模板IdWxErrorException - .Copyright © 2024. All rights reserved.