com.github.sd4324530.fastweixin.company.api
类 QYMenuAPI

java.lang.Object
  继承者 com.github.sd4324530.fastweixin.company.api.QYBaseAPI
      继承者 com.github.sd4324530.fastweixin.company.api.QYMenuAPI

public class QYMenuAPI
extends QYBaseAPI

自定义菜单管理 ==================================================================== 上海聚攒软件开发有限公司 --------------------------------------------------------------------

从以下版本开始:
1.3.6 ====================================================================
版本:
1.0.beta
作者:
Nottyjay

字段摘要
 
从类 com.github.sd4324530.fastweixin.company.api.QYBaseAPI 继承的字段
BASE_API_URL, config
 
构造方法摘要
QYMenuAPI(QYAPIConfig config)
          构造方法,设置apiConfig
 
方法摘要
 QYResultType create(QYMenu menu, String agentId)
          创建自定义菜单。
 QYResultType delete(String agentId)
          删除自定义菜单
 GetQYMenuResponse list(String agentId)
          获取菜单列表。
 
从类 com.github.sd4324530.fastweixin.company.api.QYBaseAPI 继承的方法
executeGet, executePost, executePost, isSuccess
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

QYMenuAPI

public QYMenuAPI(QYAPIConfig config)
构造方法,设置apiConfig

参数:
config - 微信API配置对象
方法详细信息

create

public QYResultType create(QYMenu menu,
                           String agentId)
创建自定义菜单。

参数:
menu - 自定义菜单
agentId - 需要生成菜单的应用ID
返回:
操作结果

list

public GetQYMenuResponse list(String agentId)
获取菜单列表。

参数:
agentId - 目标应用的ID
返回:
QYMenu。与创建菜单时的对象一致。

delete

public QYResultType delete(String agentId)
删除自定义菜单

参数:
agentId - 目标应用ID
返回:
操作结果


Copyright © 2017. All rights reserved.