空间H5游戏-后台接口

/v3/fun/vendor_push_resource

pf=qzone pf=wanba_ts

外部电商平台推送资源位数据到空间商城好物页。资源位ID暂时只支持1001~1006。

资源位数据推送可以一次性推所有的资源位,也可以分批推送。每个资源位的展示以最后一次推送为准。

此接口无需openid openkey参数

URL

https://api.urlshare.cn/v3/fun/vendor_push_resource

私有参数

参数名称 是否必须 类型 描述
data string 资源位JSON数组

data参数示例

[
    {
        "resourceId": 1001,
        "banners": [
            {
                "title": "头像",
                "desc": "小脑袋更时尚",
                "image": "http://example.com/thumb.jpg",
                "url": "http://example.com/detail.html"
            }
        ]
    },
    {
        "resourceId": 1002,
        "banners": [
            {
                "title": "头像2",
                "desc": "小脑袋更时尚2",
                "image": "http://example.com/thumb.jpg",
                "url": "http://example.com/detail.html"
            }
        ]
    },
    {
        "resourceId": 1003,
        "items": [
            {
                "itemId": "sku1125",
                "title": "很好看的包包",
                "image": "http://example.com/thumb.jpg",
                "url": "http://example.com/detail.html",
                "groupNum": 6,
                "salePrice": "49.01",
                "originPrice": "68.20"
            }
        ],
        "banners": [
            {
                "title": "天天特价团",
                "image": "http://example.com/thumb.jpg",
                "url": "http://example.com/detail.html"
            }
        ],
        "info": {
            "moreLink": "http://example.com"
        }
    },
    {
        "resourceId": 1004,
        "items": [
            {
                "itemId": "sku1125",
                "title": "很好看的包包",
                "image": "http://example.com/thumb.jpg",
                "url": "http://example.com/detail.html",
                "itemType": 1,
                "salePrice": "49.00",
                "discountPrice": "32.00"
            }
        ],
        "banners": [
            {
                "title": "专属折扣特权",
                "image": "http://example.com/thumb.jpg",
                "url": "http://example.com/detail.html"
            }
        ],
        "info": {
            "moreLink": "http://example.com"
        }
    },
    {
        "resourceId": 1005,
        "items": [
            {
                "itemId": "sku1125",
                "title": "很好看的枕头",
                "image": "http://example.com/thumb.jpg",
                "url": "http://example.com/detail.html",
                "salePrice": "49.00"
            }
        ],
        "banners": [
            {
                "title": "美好春日走得太急",
                "image": "http://example.com/thumb.jpg",
                "url": "http://example.com/detail.html"
            }
        ],
        "info": {
            "moreLink": "http://example.com"
        }
    },
    {
        "resourceId": 1006,     
        "banners": [
            {
                "image": "http://example.com/thumb.jpg",
                "url": "http://example.com/detail.html"
            }
        ]
    }
]

请求示例

https://api.urlshare.cn/v3/qzfun/vendor_push_resource?
appid=2&
sig=VrN%2BTn5J%2Fg4IIo0egUdxq6%2B0otk%3D&
pf=wanba_ts&
format=json&
data=%5B%7B%22resourceId%22%3A1001%2C%22banners%22%3A%5B%7B%22title%22%3A%22%E5%A4%B4%E5%83%8F%22%2C%22desc2%22%3A%22%E5%B0%8F%E8%84%91%E8%A2%8B%E6%9B%B4%E6%97%B6%E5%B0%9A%22%2C%22image%22%3A%22http%3A%2F%2Fexample.com%2Fthumb.jpg%22%2C%22url%22%3A%22http%3A%2F%2Fexample.com%2Fdetail.html%22%7D%5D%7D%5D

正确返回示例

{
    "code": 0,
    "subcode": 0,
    "message": "",
    "default": 0,
    "data": null
}