企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 查询分类下所有商品 ----------------------------- 接口: /open/waimai/goods/get_cate_goods_list 参数: | 参数 | 名称 | | --- | --- | | app_id | 开发者ID | | timestamp | 请求时间戳 | | access_token | 授权访问的access_token | | category_id | 分类id | 响应: | 参数 | 名称 | | --- | --- | | head | 状态信息 | | body | 响应信息 | head字段说明: | 参数 | 名称 | | --- | --- | | code | 状态码 200=成功 | | msg | 状态说明 | body字段说明: | 参数 | 名称 | | --- | --- | | id | 商品id | | category_id | 商品分类id | | category_name | 商品分类名称 | | name | 商品名称 | | short_code | 商品名称助记码 | | img_url | 商品图片 | | unit | 商品单位 | | specification | 商品规格 | | description | 商品描述 | | attributes | 商品属性 | | label | 商品标签 1=新品 2=招牌 | | ready_time | 备餐时间 单位(小时) | specification字段说明: | 参数 | 名称 | | --- | --- | | id | 规格id | | name | 规格名称 | | price | 单价(单位:分) | | box_price | 餐盒费单价(单位:分) | | box_num | 餐盒数量 | 响应示例: ~~~ { "head":{ "code":200, "msg":"success" }, "body":[ { "id":"86794", "category_id":"9244", "category_name":"API测试分类一", "name":"API商品一", "short_code":"apispy", "img_url":"https://wbollbj.wboll.com/uploads/waimai/7/7988a508bf66084d1bcb60359c8672d1.jpg?x-oss-process=image/resize,m_fill,w_690,h_690,limit_0/auto-orient,0/quality,q_90", "unit":"份", "specification":"[{"id":733,"name":"\u5c0f\u4efd","price":100,"box_price":1,"box_num":1},{"id":734,"name":"\u4e2d\u4efd","price":200,"box_price":2,"box_num":1}]", "description":"商品描述", "attributes":"", "label":"1", "ready_time":"1.0", "created_at":"2018-05-03 16:14:25", "updated_at":"2018-05-04 15:47:41" } ] } ~~~ **测试一下** ```bash curl -d "timestamp=1522660262&app_id=10001999&access_token=11d38e2d0122096d2d41c82c0978ac48962cade6&category_id=9244" http://apib7d.wboll.com/open/waimai/goods/get_cate_goods_list ```