ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 关键字回复信息 ~~~[api] post:/keywordreply/info *int:id=默认值1#关键字回复id <<< success { "code": 0, "info": "成功", "data":{ "id": 1, "keyword": "关键字1", "type": "news1", "media_id": "wechat1", "title": "1test", "description": "图文消息测试1", "pic_url": "wechatimageurl1", "url": "https://www.baidu.com1", "state": 1 } } <<< error ~~~ ## 关键字回复列表 ~~~[api] post:/keywordreply/getlist *int:page=1#页码 *int:limit=10#每页显示个数 string:key=id#排序字段名 string:order=normal#排序方式 <<< success { "code": 0, "info": "成功", "data":[ { "id": 2, "keyword": "哈哈", "type": "news", "media_id": "wechat", "title": "test", "description": "图文消息测试", "pic_url": "wechatimageurl", "url": "https://www.baidu.com", "state": 1, }, { "id": 1, "keyword": "关键字1", "type": "news1", "media_id": "wechat1", "title": "1test", "description": "图文消息测试1", "pic_url": "wechatimageurl1", "url": "https://www.baidu.com1", "state": 1, } ] } <<< error ~~~ ## 添加关键字回复 ~~~[api] post:/keywordreply/add *string:keyword= test#关键字 *string:type= news#消息类型:news 图文,image图片,text文字 string:media_id= news/image必传字段#微信素材库 素材id string:title= news/text必传字段#图文消息标题/回复文字 string:description= news必传字段#图文消息描述 string:pic_url= news/image必传字段#图片地址 string:url= news必传字段#跳转链接 <<< success { "code": 0, "info": "成功", "data":{ "keyword": "关键字2", "type": "news", "media_id": "wechat", "title": "test", "description": "图文消息测试", "pic_url": "wechatimageurl", "url": "https://www.baidu.com", "id": "2" } } <<< error ~~~ ## 编辑关键字回复 ~~~[api] post:/keywordreply/edit *id:id= 2#关键字回复id *string:keyword= test#关键字 *string:type= news#消息类型:news 图文,image图片,text文字 string:media_id= news/image必传字段#微信素材库 素材id string:title= news/text必传字段#图文消息标题/回复文字 string:description= news必传字段#图文消息描述 string:pic_url= news/image必传字段#图片地址 string:url= news必传字段#跳转链接 <<< success { "code": 0, "info": "成功", "data":{ "keyword": "关键字2", "type": "news", "media_id": "wechat", "title": "test", "description": "图文消息测试", "pic_url": "wechatimageurl", "url": "https://www.baidu.com", "id": "2" } } <<< error ~~~ ## 删除 ~~~[api] post:/keywordreply/del *int:id=默认值1#id <<< success { "code": 0, "info": "成功", "data": true } <<< error ~~~