话题1:如何通过接口直接配置微信公众号按钮
- 先获取TOKEN: 链接点击
- 查询微信按钮的配置信息:链接点击
- 创建微信按钮:(微信请求出来的JSON格式有问题)
#配置一级子菜单
{
"button": [
{
"type": "view",
"name": "百度主页",
"url": "https://www.baidu.com/"
},
{
"type": "view",
"name": "新浪主页",
"url": "http://www.sina.com.cn/"
}
]
}
#配置二级子菜单
{
"button": [
{
"name": "百度知道",
"sub_button": [
{
"type": "view",
"name": "百度搜索",
"url": "https://www.baidu.com/",
"sub_button": [ ]
},
{
"type": "view",
"name": "百度音乐",
"url": "https://y.qq.com/",
"sub_button": [ ]
}
]
},
{
"name": "新浪知道",
"sub_button": [
{
"type": "view",
"name": "新浪微博",
"url": "https://weibo.com/",
"sub_button": [ ]
},
{
"type": "view",
"name": "新浪体育",
"url": "http://sports.sina.com.cn/",
"sub_button": [ ]
}
]
}
]
}
网友评论