Package com.foxinmy.weixin4j.mp.api
Class NotifyApi
- java.lang.Object
-
- com.foxinmy.weixin4j.api.BaseApi
-
- com.foxinmy.weixin4j.mp.api.MpApi
-
- com.foxinmy.weixin4j.mp.api.NotifyApi
-
public class NotifyApi extends MpApi
客服消息API- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Field Summary
-
Fields inherited from class com.foxinmy.weixin4j.api.BaseApi
weixinExecutor
-
-
Constructor Summary
Constructors Constructor Description NotifyApi(TokenManager tokenManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiResult
sendNotify(NotifyMessage notify)
发送客服消息(在48小时内不限制发送次数)ApiResult
sendNotify(NotifyMessage notify, String kfAccount)
发送客服消息(在48小时内不限制发送次数)-
Methods inherited from class com.foxinmy.weixin4j.mp.api.MpApi
weixinBundle
-
Methods inherited from class com.foxinmy.weixin4j.api.BaseApi
getRequestUri
-
-
-
-
Constructor Detail
-
NotifyApi
public NotifyApi(TokenManager tokenManager)
-
-
Method Detail
-
sendNotify
public ApiResult sendNotify(NotifyMessage notify) throws WeixinException
发送客服消息(在48小时内不限制发送次数)- Parameters:
notify
- 客服消息对象- Returns:
- 处理结果
- Throws:
WeixinException
-
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
-
-