com.github.sd4324530.fastweixin.api
类 TemplateMsgAPI

java.lang.Object
  继承者 com.github.sd4324530.fastweixin.api.BaseAPI
      继承者 com.github.sd4324530.fastweixin.api.TemplateMsgAPI

public class TemplateMsgAPI
extends BaseAPI

模版消息 api


字段摘要
 
从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的字段
BASE_API_URL, config
 
构造方法摘要
TemplateMsgAPI(ApiConfig config)
           
 
方法摘要
 AddTemplateResponse addTemplate(String shortTemplateId)
          添加模版
 BaseResponse delTemplate(String templateId)
          删除模板
 PrivateTemplate[] getAllPrivateTemplate()
          获取已添加至帐号下所有模板列表
 SendTemplateResponse send(TemplateMsg msg)
          发送模版消息
 ResultType setIndustry(Industry industry)
          设置行业
 
从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的方法
executeGet, executePost, executePost, isSuccess
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

TemplateMsgAPI

public TemplateMsgAPI(ApiConfig config)
方法详细信息

setIndustry

public ResultType setIndustry(Industry industry)
设置行业

参数:
industry - 行业参数
返回:
操作结果

addTemplate

public AddTemplateResponse addTemplate(String shortTemplateId)
添加模版

参数:
shortTemplateId - 模版短id
返回:
操作结果

send

public SendTemplateResponse send(TemplateMsg msg)
发送模版消息

参数:
msg - 消息
返回:
发送结果

getAllPrivateTemplate

public PrivateTemplate[] getAllPrivateTemplate()
获取已添加至帐号下所有模板列表

返回:
所有模板

delTemplate

public BaseResponse delTemplate(String templateId)
删除模板

参数:
templateId - 模板ID
返回:
删除结果


Copyright © 2017. All rights reserved.