接口名称 获取商品列表     签名
地址 https://api.cnlive.com/open/api2/pom/getProducts
method post
返回数据 json

/* Title: 1.1 获取商品列表 Sort: 1 */

URL: http://console.open.cnlive.com/open/api/pom/getProducts


请求方式: GET


返回格式: JSON


请求参数说明:

参数 必选 类型 说明
sp_id true String 服务提供商ID
type true String 商品分类(0-虚拟商品、1-实物、2-视频、all-全部)
status true Integer 商品状态 0 已下线 1已上线 2全部
page true Integer 当前页号
pageSize true Integer 每页显示条数
cache true Integer 是否启用缓存 0不启用 1启用
plat true String 平台类型
sign true String 签名

返回格式说明:

成功:
{
    "products": [
        {
            "prdId": "83a9c421-5b6e-4fe1-a77e-6831e5785e63",
            "title": "weng",
            "bigPoster": "http://www.cnlive.com",
            "smallPoster": "http://www.cnlive.com",
            "homePage": "http://www.cnlive.com",
            "currency": "3",
            "rmb": "5",
            "originalRmb": "7",
            "cnCoin": "5000",
            "originalCnCoin": "7000",
            "discount1": "95",
            "discount2": "90",
            "type": "0",
            "subType": "001",
            "stock": "-1",
            "originalStock": "-1",
            "validPeriod": "0",
            "resourceType": "",
            "resource": "",
            "effectiveDate": "2014-11-16 10:42:14",
            "expiryDate": "2014-11-16 10:42:14"
        }
    ],
    "previous_cursor": "0",
    "next_cursor": "0",
    "total_number": "1"
}
失败:
{
    "errorCode":"xxxx",
    "errorMessage":"缺少参数|参数格式错误|plat参数非法|"
}

返回参数说明:

参数 参数说明
prdId 商品ID
title 商品名
bigPoster 商品海报大图
smallPoster 商品海报小图
currency 支付币种 1中国币 2人民币 3中国币/人民币
rmb 人民币价格,单位分
originalRmb 人民币原价,单位分
cnCoin 中国币价格
originalCnCoin 中国币原价
discount1 折扣1,批量购买数达到10
discount2 折扣2,批量购买数达到20
stock 库存
type 商品分类 0 虚拟物品 1实物 2视频
subType 商品类型 001充值卡 002电子票 200视频
validPeriod 商品包月天数
resourceType 商品包类型
resource 商品包资源(栏目ID)
effectiveDate 商品生效时间
expiryDate 商品无效时间
homePage 商家主页
weight 权重
status 商品状态 0 未上线 1已上线
previous_cursor 前一页
next_cursor 后一页
total_number 总页数