com.github.sd4324530.fastweixin.api
类 MenuAPI

java.lang.Object
  继承者 com.github.sd4324530.fastweixin.api.BaseAPI
      继承者 com.github.sd4324530.fastweixin.api.MenuAPI

public class MenuAPI
extends BaseAPI

菜单相关API 1.3.7支持个性化菜单

从以下版本开始:
1.2
作者:
peiyu

字段摘要
 
从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的字段
BASE_API_URL, config
 
构造方法摘要
MenuAPI(ApiConfig config)
           
 
方法摘要
 ResultType createMenu(Menu menu)
          创建菜单 1.3.7开始支持个性化菜单
 ResultType deleteConditionalMenu(String menuId)
          删除个性化菜单
 ResultType deleteMenu()
          删除所有菜单,包括个性化菜单
 GetMenuResponse getMenu()
          获取所有菜单
 GetMenuResponse tryMatchMenu(String userId)
          测试个性化菜单
 
从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的方法
executeGet, executePost, executePost, isSuccess
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MenuAPI

public MenuAPI(ApiConfig config)
方法详细信息

createMenu

public ResultType createMenu(Menu menu)
创建菜单 1.3.7开始支持个性化菜单

参数:
menu - 菜单对象
返回:
调用结果

getMenu

public GetMenuResponse getMenu()
获取所有菜单

返回:
菜单列表对象

deleteMenu

public ResultType deleteMenu()
删除所有菜单,包括个性化菜单

返回:
调用结果

deleteConditionalMenu

public ResultType deleteConditionalMenu(String menuId)
删除个性化菜单

参数:
menuId - 个性化菜单ID
返回:
调用结果
从以下版本开始:
1.3.7

tryMatchMenu

public GetMenuResponse tryMatchMenu(String userId)
测试个性化菜单

参数:
userId - 可以是粉丝的OpenID,也可以是粉丝的微信号
返回:
该用户可以看到的菜单
从以下版本开始:
1.3.7


Copyright © 2017. All rights reserved.