Skip to content

查询组合课的资源列表3.0 ​

拥有此API的权限集
商品管理-查询

接口描述 ​

  • 此接口为较老版本,推荐使用查询组合课的资源列表4.0接口来获取专栏的资源列表

请求方式及url ​

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://api.xiaoe-tech.com/xe.goods.relation.get/3.0.0
  • 频率限制:10秒3000次

接口调试

请求参数
响应结果
暂无响应数据

请求参数 ​

参数名必选类型说明备注(示例)
access_token是string专属token...
data.goods_id是string专栏id...
data.goods_type是int类型;会员-5,专栏-6,大专栏-8...
data.last_id否string上一页数据最后一条数据的resource_id,分页时使用,获取第一页数据时该参数为空...
data.page_size是int页容量:每次获取资源条数...
data.resource_type是array要获取的资源类型,,如果只想获取某一种单独资源,则传相应的类型,例如,传2只获取音频列表;图文-1,音频-2,视频-3,直播-4,专栏-6,电子书-20[1,2,3]

请求示例 ​

{
    "access_token":"xe_xxxxx",
	"data":{
        "goods_id":"p_xxxx",
        "goods_type":8,
        "resource_type":[ 6 ],
        "last_id":"xxx",
        "page_size":20
    }
}

返回参数 ​

参数名必选类型说明备注
code是int返回码0-成功,其他失败
msg是string返回信息...
data是json对象返回值...
data.last_id是string当前页goods_list数组最后一个元素的resource_id...
data.goods_list是json数组资源列表...

资源列表goods_list

参数名必选类型说明备注
resource_id是string资源id我是备注
title是string资源名称我是备注
img_url是string缩略图我是备注
img_url_compress是string缩略图压缩图片我是备注
resource_type是int资源类型我是备注
view_count是int浏览量我是备注
备注 ​
  • code=0时,msg:
  • code!=0时,msg:拉取数据错误

返回示例 ​

{
    "code": 0,
    "msg": "成功",
    "data": {
        "last_id": "i_xxx",
        "goods_list": [
            {
                "resource_id": "e_xxx",
                "title": "电子书测试课程dscdas",
                "img_url": "http://xxxx.jpg",
                "img_url_compress": "http://xxxx.jpg",
                "resource_type": 20,
                "view_count": 0
            },
            {
                "resource_id": "l_xxx",
                "title": "Jacky要直播啦",
                "view_count": 2,
                "img_url": "http://xxxx.png",
                "img_url_compress": "http://xxxx.png",
                "resource_type": 4
            },
            {
                "resource_id": "v_xxxx",
                "title": "zak 视频",
                "img_url": "http://xxxx.jpg",
                "img_url_compress": "http://xxxx.jpg",
                "view_count": 315,
                "resource_type": 3
            },
            {
                "resource_id": "a_xxxx",
                "title": "付费0.1",
                "img_url": "http:/xxxx.jpg",
                "img_url_compress": "http://xxxx.jpg",
                "view_count": 21,
                "resource_type": 2
            },
            {
                "resource_id": "i_xxx",
                "title": "10元的图文",
                "img_url": "http://xxxx.jpg",
                "img_url_compress": "http://xxxx.jpg",
                "view_count": 8,
                "resource_type": 1
            }
        ]
    }
}