예제 #1
0
 /**
  * 获取公众号当前使用的自动回复规则,包括关注后自动回复、消息自动回复(60分钟内触发一次)、关键词自动回复。
  *
  * @see com.foxinmy.weixin4j.mp.model.AutoReplySetting
  * @see com.foxinmy.weixin4j.mp.api.HelperApi
  * @see <a
  *     href="http://mp.weixin.qq.com/wiki/7/7b5789bb1262fb866d01b4b40b0efecb.html">获取自动回复规则</a>
  * @throws WeixinException
  */
 public AutoReplySetting getAutoReplySetting() throws WeixinException {
   return helperApi.getAutoReplySetting();
 }
예제 #2
0
 /**
  * 获取公众号当前使用的自定义菜单的配置,如果公众号是通过API调用设置的菜单,则返回菜单的开发配置, 而如果公众号是在公众平台官网通过网站功能发布菜单,则本接口返回运营者设置的菜单配置。
  *
  * @return 菜单集合
  * @see {@link #getMenu()}
  * @see <a
  *     href="http://mp.weixin.qq.com/wiki/17/4dc4b0514fdad7a5fbbd477aa9aab5ed.html">获取自定义菜单配置</a>
  * @see com.foxinmy.weixin4j.model.Button
  * @se com.foxinmy.weixin4j.mp.model.MenuSetting
  * @see com.foxinmy.weixin4j.tuple.MpArticle
  * @see com.foxinmy.weixin4j.mp.api.HelperApi
  * @throws WeixinException
  */
 public MenuSetting getMenuSetting() throws WeixinException {
   return helperApi.getMenuSetting();
 }
예제 #3
0
 /**
  * 语义理解
  *
  * @param semQuery 语义理解协议
  * @return 语义理解结果
  * @see com.foxinmy.weixin4j.mp.model.SemQuery
  * @see com.foxinmy.weixin4j.mp.model.SemResult
  * @see <a href="http://mp.weixin.qq.com/wiki/0/0ce78b3c9524811fee34aba3e33f3448.html">语义理解</a>
  * @see com.foxinmy.weixin4j.mp.api.HelperApi
  * @throws WeixinException
  */
 public SemResult semantic(SemQuery semQuery) throws WeixinException {
   return helperApi.semantic(semQuery);
 }
예제 #4
0
 /**
  * 获取微信服务器IP地址
  *
  * @return IP地址
  * @see <a href="http://mp.weixin.qq.com/wiki/0/2ad4b6bfd29f30f71d39616c2a0fcedc.html">获取IP地址</a>
  * @see com.foxinmy.weixin4j.mp.api.HelperApi
  * @throws WeixinException
  */
 public List<String> getCallbackip() throws WeixinException {
   return helperApi.getCallbackip();
 }
예제 #5
0
 /**
  * 长链接转短链接
  *
  * @param url 待转换的链接
  * @return 短链接
  * @throws WeixinException
  * @see <a
  *     href="http://mp.weixin.qq.com/wiki/10/165c9b15eddcfbd8699ac12b0bd89ae6.html">长链接转短链接</a>
  * @see com.foxinmy.weixin4j.mp.api.HelperApi
  */
 public String getShorturl(String url) throws WeixinException {
   return helperApi.getShorturl(url);
 }