com.foxinmy.weixin4j.mp.api
Class NotifyApi

java.lang.Object
  extended by com.foxinmy.weixin4j.api.BaseApi
      extended by com.foxinmy.weixin4j.mp.api.MpApi
          extended by com.foxinmy.weixin4j.mp.api.NotifyApi

public class NotifyApi
extends MpApi

客服消息API

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)

Constructor Summary
NotifyApi(TokenManager tokenManager)
           
 
Method Summary
 ApiResult sendNotify(NotifyMessage notify)
          发送客服消息(在48小时内不限制发送次数)
 ApiResult sendNotify(NotifyMessage notify, String kfAccount)
          发送客服消息(在48小时内不限制发送次数)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotifyApi

public NotifyApi(TokenManager tokenManager)
Method Detail

sendNotify

public ApiResult sendNotify(NotifyMessage notify)
                     throws WeixinException
发送客服消息(在48小时内不限制发送次数)

Parameters:
notify - 客服消息对象
Returns:
处理结果
Throws:
WeixinException
See Also:
#sendNotify(NotifyMessage, String)}

sendNotify

public ApiResult sendNotify(NotifyMessage notify,
                            String kfAccount)
                     throws WeixinException
发送客服消息(在48小时内不限制发送次数)

Parameters:
notify - 客服消息对象
kfAccount - 客服账号 可为空
Returns:
处理结果
Throws:
WeixinException
See Also:
发送客服消息, Text, Image, Voice, Video, Music, News, NotifyMessage


Copyright © 2014–2017. All rights reserved.