Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义菜单 - 获取公众号的菜单配置 #32

Open
drodata opened this issue Mar 19, 2016 · 0 comments
Open

自定义菜单 - 获取公众号的菜单配置 #32

drodata opened this issue Mar 19, 2016 · 0 comments
Labels

Comments

@drodata
Copy link
Owner

drodata commented Mar 19, 2016

http://mp.weixin.qq.com/wiki/14/293d0cb8de95e916d1216a33fcb81fd6.html

本接口提供公众号当前使用的自定义菜单的配置,如果公众号是通过API调用设置的菜单,则返回菜单的开发配置,而如果公众号是在公众平台官网通过网站功能发布菜单,则本接口返回运营者设置的菜单配置

📝 通过不同途径设置的自定义菜单,返回值也不同。

注意事项:

  1. 🔴 第三方平台开发者可以通过本接口,在旗下公众号将业务授权给你后,立即通过本接口检测公众号的自定义菜单配置,并通过接口再次给公众号设置好自动回复规则,以提升公众号运营者的业务体验。
  2. 本接口与自定义菜单查询接口的不同之处在于,本接口无论公众号的接口是如何设置的,都能查询到接口,而自定义菜单查询接口则仅能查询到使用API设置的菜单配置
  3. 认证/未认证的服务号/订阅号,以及接口测试号,均拥有该接口权限
  4. 🔴 从第三方平台的公众号登录授权机制上来说,该接口从属于消息与菜单权限集
  5. 本接口中返回的图片/语音/视频为临时素材(临时素材每次获取都不同,3天内有效,通过素材管理-获取临时素材接口来获取这些素材),本接口返回的图文消息为永久素材素材(通过素材管理-获取永久素材接口来获取这些素材)。

📝 1 和 4 看不懂。

调用测试结果实例:

{
    "is_menu_open": 1,
    "selfmenu_info": {
        "button": [
            {
                "type": "click",
                "name": "订单查询",
                "key": "key01"
            },
            {
                "name": "自助服务",
                "sub_button": {
                    "list": [
                        {
                            "type": "view",
                            "name": "订单系统",
                            "url": "http://i.a.com/"
                        },
                        {
                            "type": "click",
                            "name": "点赞",
                            "key": "key02"
                        }
                    ]
                }
            }
        ]
    }
}
@drodata drodata mentioned this issue Mar 19, 2016
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant