文档
测试

获取商品列表

POST
https://only-api.com/api/listShop

接口描述

获取商品列表

请求头

参数名
类型
描述
必填
Cookie
string
验证用户的token
必填

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
appId
int
应用唯一标识
必填
sign
string
签名校验,仅当"签名启用"开启时传入
可选
expire
int
请求有效期,默认180(单位:秒)
可选
page
int
页码,从1开始,每页10条
必填
category
string
商品分类,传入该参数后只显示该分类的商品
可选

响应参数

application/json
参数名
类型
描述
必填
code
string
状态码
必填
result
array
结果数据
必填
id
int
商品唯一标识
必填
name
string
名称
必填
category
string
分类
必填
deliverMethod
int
发货方式,0为自动发货,1为接口提交,2为手动处理
必填
icon
string
商品图标
必填
currency
string
交易货币
必填
price
double
价格或优惠后的价格
必填
sold
int
已售
必填
stock
int
库存
必填
onlyVip
boolean
是否仅VIP可购买
必填
introduction
string
商品介绍
可选
msg
string
错误信息
可选
time
string
请求过期的时间戳(单位:秒)
必填

说明 / 示例

**不可购买的商品将不会显示**