当前位置: 首页 > 后端技术 > PHP

垃圾分类API

时间:2023-03-30 00:14:28 PHP

垃圾分类API目前开放以下三个接口,可以根据关键词查询垃圾分类信息,根据id查询当前垃圾分类条目,查询最近5条垃圾查询记录,供热搜模块https://www.xiaomutong使用。com.cn/web/index.php?r=site/getproductsbykeyword{"keywords":"corn"}https://www.xiaomutong.com.cn/web/index.php?r=site/getbyid{"id":"1"}https://www.xiaomutong.com.cn/web/index.php?r=site/getproduct1.根据关键词查询垃圾分类信息-根据关键词查询垃圾分类信息-方法:post-https://www.xiaomutong.com.cn/web/index.php?r=site/getproductsbykeyword{"code":0,"message":"","result":[{"id":"160","name":"玉米衣","type":"干垃圾","createTime":"2019-07-1001:13:54"},{"id":"227","name":"玉米","type":"湿垃圾","createTime":"2019-07-1019:10:10"},{"id":"321","name":"玉米棒子","type":"湿垃圾","createTime":"2019-07-1023:17:33"},{"编号”:“505”,“不我":"玉米壳","type":"干垃圾","createTime":"2019-07-2419:28:18"},{"id":"696","name":"玉米Leaf","type":"DryGarbage","createTime":"2019-07-2419:27:00"}]}2.根据id查询当前垃圾分类入口{"code":0,"message":"","result":{"id":"1","name":"饭盒","type":"干垃圾","createTime":"2019-07-1000:33:36"}}3.查询最近5条垃圾查询记录,供热搜模块使用-查询最近5条查询日志-方法:get-https://www.xiaomutong.com.cn/web/index.php?r=site/getproduct{"code":0,"message":"","result":[{"id":"3668","name":"corn","type":"干垃圾","createTime":"2019-08-2019:35:28"},{"id":"3667","name":"corn","type":"干垃圾","createTime":"2019-08-2019:31:21"},{"id":"3666","name":"corn","type":"drygarbage","creatTime":"2019-08-2019:27:27"},{"id":"3665","name":"Book","type":"Recyclables","createTime":"2019-08-2019:25:13"},{"id":"3664","name":"Book","type":"Recyclables","createTime":"2019-08-2019:25:13"}]}该接口目前在我的个人小程序中运行正常,可以免费提供给大家,如果大家对这个项目感兴趣,我们一起维护垃圾分类词条,目前有50000条垃圾分类词条条目很多条目,每天都在添加条目,