Class NotifyApi


  • public class NotifyApi
    extends MpApi
    客服消息API
    Since:
    JDK 1.6
    Author:
    jinyu(foxinmy@gmail.com)
    • Constructor Detail

      • NotifyApi

        public NotifyApi​(com.foxinmy.weixin4j.token.TokenManager tokenManager)
    • Method Detail

      • sendNotify

        public com.foxinmy.weixin4j.http.weixin.ApiResult sendNotify​(NotifyMessage notify)
                                                              throws com.foxinmy.weixin4j.exception.WeixinException
        发送客服消息(在48小时内不限制发送次数)
        Parameters:
        notify - 客服消息对象
        Returns:
        处理结果
        Throws:
        com.foxinmy.weixin4j.exception.WeixinException
      • sendNotify

        public com.foxinmy.weixin4j.http.weixin.ApiResult sendNotify​(NotifyMessage notify,
                                                                     String kfAccount)
                                                              throws com.foxinmy.weixin4j.exception.WeixinException
        发送客服消息(在48小时内不限制发送次数)
        Parameters:
        notify - 客服消息对象
        kfAccount - 客服账号 可为空
        Returns:
        处理结果
        Throws:
        com.foxinmy.weixin4j.exception.WeixinException
        See Also:
        发送客服消息, Text, Image, Voice, Video, Music, News, NotifyMessage