|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxinmy.weixin4j.api.BaseApi
com.foxinmy.weixin4j.mp.api.MpApi
com.foxinmy.weixin4j.mp.api.HelperApi
public class HelperApi
辅助相关API
| Constructor Summary | |
|---|---|
HelperApi(TokenManager tokenManager)
|
|
| Method Summary | |
|---|---|
ApiResult |
clearQuota(String appId)
接口调用次数调用清零:公众号调用接口并不是无限制的。为了防止公众号的程序错误而引发微信服务器负载异常,默认情况下, 每个公众号调用接口都不能超过一定限制 ,当超过一定限制时,调用对应接口会收到{"errcode":45009,"errmsg":"api freq out of limit" }错误返回码。 |
AutoReplySetting |
getAutoReplySetting()
获取公众号当前使用的自动回复规则,包括关注后自动回复、消息自动回复(60分钟内触发一次)、关键词自动回复。 |
MenuSetting |
getMenuSetting()
获取公众号当前使用的自定义菜单的配置,如果公众号是通过API调用设置的菜单,则返回菜单的开发配置, 而如果公众号是在公众平台官网通过网站功能发布菜单,则本接口返回运营者设置的菜单配置。 |
String |
getShorturl(String url)
长链接转短链接 |
List<String> |
getWechatServerIp()
获取微信服务器IP地址 |
SemResult |
semantic(SemQuery semQuery)
语义理解 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HelperApi(TokenManager tokenManager)
| Method Detail |
|---|
public String getShorturl(String url)
throws WeixinException
url - 待转换的链接
WeixinException
public SemResult semantic(SemQuery semQuery)
throws WeixinException
semQuery - 语义理解协议
WeixinExceptionSemQuery,
SemResult,
语义理解
public List<String> getWechatServerIp()
throws WeixinException
WeixinException
public MenuSetting getMenuSetting()
throws WeixinException
WeixinExceptionMenuApi#getMenu()},
获取自定义菜单配置,
Button,
MenuSetting,
MpArticle
public AutoReplySetting getAutoReplySetting()
throws WeixinException
WeixinExceptionAutoReplySetting,
获取自动回复规则
public ApiResult clearQuota(String appId)
throws WeixinException
appId - 公众号ID
WeixinException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||