拉取address下允许访问的藏品列表
更新时间:2023-08-29
拉取address下允许访问的藏品列表
接口描述
- 按授权拉取指定address下的藏品列表。
 - 需要携带listaddr接口下发的对应token
 - 按时间倒序排序。
 - 此接口需要联系平台申请授权才可用,需注意用户也可以取消自己的地址对外使用
 
请求结构
                JSON
                
            
            1POST /xasset/scene/v1/listsdsbyaddr HTTP/1.1
2Host: xuper.baidu.com
3Authorization: Authorization string
4Content-Type: application/x-www-form-urlencoded;charset=utf-8
5
6addr={address}
7&token={token}
8&limit={limit}
9&cursor={cursor}
            请求头域
- 除公共头域外,无其它特殊头域。
 
请求参数
| 参数名 | 参数类型 | 是否可选 | 参数说明 | 
|---|---|---|---|
| addr | string | 必选 | 要查询的账户地址 | 
| token | string | 必选 | listaddr接口下发的对应token | 
| limit | int | 可选 | 默认30,最大50 | 
| cursor | string | 可选 | 首页设置”“,下页携带上页返回值 | 
响应头域
- 除公共头域外,无其它特殊头域。
 
响应参数
| 参数名称 | 类型 | 描述 | 
|---|---|---|
| errno | int | 错误码 0为成功,其他可参考常用错误码 | 
| request_id | int | 后端生成,用于问题反馈,建议业务日志纪录 | 
| list | array | 资产信息列表 | 
| cursor | string | 分页游标 | 
| has_more | int | 0:已拉取完成 1:还有剩余数据 | 
请求示例
                JSON
                
            
            1POST /xasset/scene/v1/listsdsbyaddr
2Host: xuper.baidu.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2022-04-18T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
4
5addr=bFKZMPVBtUPb1bdoXzWwKX1jaSy9omMjR
6&token=B014EDF86B6DEE29E167E9D9ED9C5832
7&limit=30
8&cursor=""
            响应示例
                JSON
                
            
            1HTTP/1.1 200 OK
2Content-Type: application/json;charset=UTF-8
3Date: Wed, 18 Apr 2022 03:28:11 GMT
4X-Trace-Id: "1182282645"
5  {
6     "errno": 0,
7    "request_id": "916556533358021977",
8    "cursor": "xxxxxxxxxx",
9    "has_more": 0,
10    "list": [
11        {
12            "asset_id": 123,  // 资产id
13            "shard_id": 123,  // 碎片id
14            "title": "xxx", // 资产标题
15            "thumb": [
16                {
17                    "urls": {
18                        "icon": "https://xxx",
19                        "url1": "https://xxx",
20                        "url2": "https://xxx",
21                        "url3": "https://xxx"
22                    },
23                    "width": "3000",
24                    "height": "2000"
25                }
26            ],
27            "ctime": 123, // 碎片创建时间
28        },
29        {
30            "asset_id": 123,  // 资产id
31            "shard_id": 123,  // 碎片id
32            "title": "xxx", // 资产标题
33            "thumb": [
34                {
35                    "urls": {
36                        "icon": "https://xxx",
37                        "url1": "https://xxx",
38                        "url2": "https://xxx",
39                        "url3": "https://xxx"
40                    },
41                    "width": "3000",
42                    "height": "2000"
43                }
44            ],
45            "ctime": 123,
46        },
47    ]
48}
            