自定义菜单查询接口
自定义菜单查询接口
自定义菜单查询接口
URL
https://m.api.weibo.com/2/messages/menu/show.json
HTTP请求方式
GET
是否需要登录
是
关于登录授权,参见 如何登录授权
接口请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
access_token | true | string | 在粉丝服务开发者模式中获取,或者OAuth授权后获得。 |
返回结果
// 成功返回 { "menu": { "button": [ { "type": "click", "name": "今日歌曲", "key": "V1001_TODAY_MUSIC" }, { "type": "click", "name": "歌手简介", "key": "V1001_TODAY_SINGER" }, { "name": "菜单", "sub_button": [ { "type": "view", "name": "搜索", "url": "http://www.soso.com/" }, { "type": "view", "name": "视频", "url": "http://v.qq.com/" }, { "type": "click", "name": "赞一下我们", "key": "V1001_GOOD" } ] } ] } } // 失败返回 { "request": "/2/messages/menu/show.json", "error_code": 264XX, "error": "error message." }