自定义菜单查询接口
(→HTTP请求方式) |
(→是否需要登录) |
||
(未显示2个用户的9个中间版本) | |||
第4行: | 第4行: | ||
==URL== | ==URL== | ||
− | https://api.weibo.com/2/messages/menu/show.json | + | https://m.api.weibo.com/2/messages/menu/show.json |
− | + | ||
− | + | ||
==HTTP请求方式== | ==HTTP请求方式== | ||
GET | GET | ||
− | + | 请求说明,https://m.api.weibo.com/2/messages/menu/show.json?access_token=ACCESS_TOKEN | |
− | + | ||
− | + | ||
− | + | ||
==接口请求参数== | ==接口请求参数== | ||
第23行: | 第18行: | ||
!width="10%" style="text-align:center;font-weight:bolder;border:1px solid #cccccc"|类型及范围 | !width="10%" style="text-align:center;font-weight:bolder;border:1px solid #cccccc"|类型及范围 | ||
!width="75%" style="text-align:center;font-weight:bolder;border:1px solid #cccccc"|说明 | !width="75%" style="text-align:center;font-weight:bolder;border:1px solid #cccccc"|说明 | ||
− | + | {{api_args|access_token|true|string|在账号Profile页--> 管理中心 --> 粉丝服务--> 高级功能--> 开发模式中获取,详细参考 [[Messages_api/access_token|获取粉丝服务平台开发接口的access token]]。}} | |
− | {{api_args|access_token | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==返回结果== | ==返回结果== | ||
第170行: | 第25行: | ||
// 成功返回 | // 成功返回 | ||
{ | { | ||
− | " | + | "menu": { |
− | + | "button": [ | |
− | + | { | |
− | + | "type": "click", | |
− | + | "name": "获取优惠券", | |
− | + | "key": "get_groupon" | |
− | + | }, | |
+ | { | ||
+ | "type": "click", | ||
+ | "name": "查询客服电话", | ||
+ | "key": "the_big_brother_need_your_phone" | ||
+ | }, | ||
+ | { | ||
+ | "name": "菜单", | ||
+ | "sub_button": [ | ||
+ | { | ||
+ | "type": "view", | ||
+ | "name": "网上4S店", | ||
+ | "url": "http://apps.weibo.com/1838358847/8rYu1uHD" | ||
+ | }, | ||
+ | { | ||
+ | "type": "view", | ||
+ | "name": "砍价团", | ||
+ | "url": "http://apps.weibo.com/1838358847/8s1i6v74" | ||
+ | }, | ||
+ | { | ||
+ | "type": "click", | ||
+ | "name": "么么哒", | ||
+ | "key": "memeda" | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | ] | ||
+ | } | ||
} | } | ||
// 失败返回 | // 失败返回 | ||
{ | { | ||
− | "request": "/2/messages/ | + | "request": "/2/messages/menu/show.json", |
"error_code": 264XX, | "error_code": 264XX, | ||
"error": "error message." | "error": "error message." |
2014年6月11日 (三) 22:46的最后版本
自定义菜单查询接口
自定义菜单查询接口
URL
https://m.api.weibo.com/2/messages/menu/show.json
HTTP请求方式
GET
请求说明,https://m.api.weibo.com/2/messages/menu/show.json?access_token=ACCESS_TOKEN
接口请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
access_token | true | string | 在账号Profile页--> 管理中心 --> 粉丝服务--> 高级功能--> 开发模式中获取,详细参考 获取粉丝服务平台开发接口的access token。 |
返回结果
// 成功返回 { "menu": { "button": [ { "type": "click", "name": "获取优惠券", "key": "get_groupon" }, { "type": "click", "name": "查询客服电话", "key": "the_big_brother_need_your_phone" }, { "name": "菜单", "sub_button": [ { "type": "view", "name": "网上4S店", "url": "http://apps.weibo.com/1838358847/8rYu1uHD" }, { "type": "view", "name": "砍价团", "url": "http://apps.weibo.com/1838358847/8s1i6v74" }, { "type": "click", "name": "么么哒", "key": "memeda" } ] } ] } } // 失败返回 { "request": "/2/messages/menu/show.json", "error_code": 264XX, "error": "error message." }
文档更新时间: 2014-06-11