获取“我发出的”分享列表
适用版本>=v7.0.2312a.20231207
接口说明:获取我发出的分享列表
请求说明
| 请求地址 | 配置域名+/graph+/v7/links/send |
|---|---|
| 请求方法 | GET |
| 签名方式 | WPS-4签名/WPS-4-GM签名(配置域名+/graph不参与签名) |
| 权限要求 | 管理文件分享(用户授权) kso.file.share.write |
请求头(Header)
| 名称 | 是否必填 | 说明 |
|---|---|---|
| Content-Type | 是 | 固定为: application/json |
| Wps-Docs-Date | 是 | 取当前时间, 示例: Wed, 23 Jan 2013 06:43:08 GMT |
| Wps-Docs-Authorization | 是 | 计算方法参考签名说明 |
| Authorization | 是 | 授权凭证,格式为: Bearer {access_token} |
查询参数(Query)
| 名称 | 参数类型 | 是否必填 | 说明 |
|---|---|---|---|
| with_permission | bool | 否 | 是否返回文件操作权限 |
| with_drive | bool | 否 | 是否返回drive信息 |
| page_size | int | 是 | 请求大小,最大值:1024 |
| page_token | string | 否 | 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回next_page_token作为新的page_token,下次遍历可采用该page_token获取查询结果 |
响应体(Response)
| 名称 | 类型 | 说明 |
|---|---|---|
| code | integer | 错误码 |
| detail | string | 详细信息 |
| msg | string | 状态信息 |
| data | object | 文件存储的介质 |
| ∟ items | object[] | 数据集合,<= 1024 items |
| ∟ ∟ ctime | int | 创建时间,时间戳,单位为秒 |
| ∟ ∟ created_by | object | 创建者信息 |
| ∟ ∟ ∟ avatar | string | 创建者头像,<= 1024 characters |
| ∟ ∟ ∟ company_id | string | 创建者企业id,<= 1024 characters |
| ∟ ∟ ∟ id | string | 创建者id,<= 1024 characters |
| ∟ ∟ ∟ name | string | 创建者名称,<= 1024 characters |
| ∟ ∟ ∟ type | string | 创建者身份类型,user:用户 |
| ∟ ∟ drive_id | string | 驱动id |
| ∟ ∟ ext_attrs | object[] | 文件扩展属性 |
| ∟ ∟ drive | object | 文件存储的介质 |
| ∟ ∟ ∟ allotee_id | string | 盘归属身份idallotee_type=user,allotee_id代表用户id;allotee_type=group,allotee_id代表用户组id |
| ∟ ∟ ∟ allotee_type | string | 盘归属身份类型,可选值: user:用户 group:用户组 |
| ∟ ∟ ∟ company_id | string | 企业id,<= 1024 characters |
| ∟ ∟ ∟ created_by | object | 创建者 |
| ∟ ∟ ∟ ∟ avatar | string | 创建者头像,<= 1024 characters |
| ∟ ∟ ∟ ∟ company_id | string | 创建者企业id,<= 1024 characters |
| ∟ ∟ ∟ ∟ id | string | 创建者id,<= 1024 characters |
| ∟ ∟ ∟ ∟ name | string | 创建者名称,<= 1024 characters |
| ∟ ∟ ∟ ∟ type | string | 创建者身份类型,user:用户 |
| ∟ ∟ ∟ ctime | int | 创建时间,时间戳,单位为秒 |
| ∟ ∟ ∟ description | string | 盘描述,<= 1024 characters |
| ∟ ∟ ∟ ext_attrs | object[] | 盘扩展属性,<= 1024 items |
| ∟ ∟ ∟ ∟ name | string | 属性名,<= 1024 characters |
| ∟ ∟ ∟ ∟ value | string | 属性值,<= 1024 characters |
| ∟ ∟ ∟ id | string | <= 1024 characters |
| ∟ ∟ ∟ mtime | int | 修改时间,时间戳,单位为秒 |
| ∟ ∟ ∟ name | string | 驱动盘名称,<= 1024 characters |
| ∟ ∟ ∟ quota | object | 盘容量 |
| ∟ ∟ ∟ ∟ deleted | int | 回收站中的文件占用的总空间,以字节为单位。只读。 |
| ∟ ∟ ∟ ∟ remaining | int | integer [int64]剩余的总空间,以字节为单位。只读。 |
| ∟ ∟ ∟ ∟ total | int | 允许的总存储空间,以字节为单位。只读。 |
| ∟ ∟ ∟ ∟ used | int | 已使用的总空间,以字节为单位。只读。 |
| ∟ ∟ ∟ status | string | 盘状态,Enum: "inuse" "deleted" |
| ∟ ∟ hash | object | 哈希 |
| ∟ ∟ ∟ sum | string | 哈希结果,<= 1024 characters |
| ∟ ∟ ∟ type | string | 哈希类型,固定为s2s |
| ∟ ∟ id | string | <= 1024 characters |
| ∟ ∟ link_id | string | 链接id,<= 1024 characters |
| ∟ ∟ link_url | string | 链接url,<= 1024 characters |
| ∟ ∟ modified_by | object | 修改者信息 |
| ∟ ∟ ∟ avatar | string | 修改者头像,<= 1024 characters |
| ∟ ∟ ∟ company_id | string | 修改者企业id,<= 1024 characters |
| ∟ ∟ ∟ id | string | 修改者id,<= 1024 characters |
| ∟ ∟ ∟ name | string | 修改者名称,<= 1024 characters |
| ∟ ∟ ∟ type | string | 修改者身份类型,user:用户 |
| ∟ ∟ mtime | int | 修改时间,时间戳,单位为秒 |
| ∟ ∟ name | string | 名称 |
| ∟ ∟ parent_id | string | 父文件id |
| ∟ ∟ permission | object | 权限 |
| ∟ ∟ size | int | 大小 |
| ∟ ∟ type | string | 类型,Enum: "folder" "file" |
| ∟ ∟ version | int | 版本 |
| ∟ next_page_token | string | 下一页分页标记,<= 1024 characters;当查询结果中next_page_token为空或无该返回值时,代表无下一页 |
响应体示例
{
"data": {
"items": [
{
"created_by": {
"avatar": "string",
"company_id": "string",
"id": "string",
"name": "string",
"type": "user"
},
"ctime": 0,
"drive": {
"allotee_id": "string",
"allotee_type": "user",
"company_id": "string",
"created_by": {
"avatar": "string",
"company_id": "string",
"id": "string",
"name": "string",
"type": "user"
},
"ctime": 0,
"description": "string",
"ext_attrs": [
{
"name": "string",
"value": "string"
}
],
"id": "string",
"mtime": 0,
"name": "string",
"quota": {
"deleted": 0,
"remaining": 0,
"total": 0,
"used": 0
},
"status": "inuse"
},
"drive_id": "string",
"ext_attrs": [
{
"name": "string",
"value": "string"
}
],
"hash": {
"sum": "string",
"type": "s2s"
},
"id": "string",
"link_id": "string",
"link_url": "string",
"modified_by": {
"avatar": "string",
"company_id": "string",
"id": "string",
"name": "string",
"type": "user"
},
"mtime": 0,
"name": "string",
"parent_id": "string",
"permission": {
"comment": true,
"copy": true,
"copy_content": true,
"delete": true,
"download": true,
"list": true,
"move": true,
"new_empty": true,
"perm_ctl": true,
"preview": true,
"print": true,
"rename": true,
"share": true,
"update": true,
"upload": true
},
"size": 0,
"type": "folder",
"version": 0
}
],
"next_page_token": "string"
},
"code": 0,
"detail": "string",
"msg": "string"
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94