获取“我发出的”分享列表
适用版本>=v7.0.2505a.20250515
接口说明:获取“我发出的”分享列表
请求说明
| 请求地址 | 配置域名+/openapi+/v7/links/send |
|---|---|
| 请求方法 | GET |
| 签名方式 | KSO-1(配置域名+/openapi不参与签名) |
| 权限要求 | 查询和管理文件分享(用户授权) kso.file_link.readwrite |
请求头(Header)
| Header | 参数类型 | 是否必填 | 说明 |
|---|---|---|---|
| X-Kso-Date | string | 是 | RFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT |
| X-Kso-Authorization | string | 是 | KSO-1 签名值,详见《签名方法》 |
| Authorization | string | 是 | 授权凭证,格式为: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 |
| ∟ ∟ 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 | 创建时间,时间戳,单位为秒 |
| ∟ ∟ ∟ id | string | <= 1024 characters |
| ∟ ∟ ∟ mtime | int | 修改时间,时间戳,单位为秒 |
| ∟ ∟ ∟ name | string | 驱动盘名称,<= 1024 characters |
| ∟ ∟ ∟ quota | object | 盘容量 |
| ∟ ∟ ∟ ∟ deleted | int | 回收站中的文件占用的总空间,以字节为单位。只读。 |
| ∟ ∟ ∟ ∟ remaining | int | integer [int64]剩余的总空间,以字节为单位。只读。 |
| ∟ ∟ ∟ ∟ total | int | 允许的总存储空间,以字节为单位。只读。 |
| ∟ ∟ ∟ ∟ used | int | 已使用的总空间,以字节为单位。只读。 |
| ∟ ∟ ∟ status | string | 盘状态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 | 文件类型 |
| ∟ ∟ version | int | 版本 |
| ∟ next_page_token | string | 下一页分页标记,<= 1024 characters;当查询结果中next_page_token为空或无该返回值时,代表无下一页 |
响应体示例
json
{
"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,
"id": "string",
"mtime": 0,
"name": "string",
"quota": {
"deleted": 0,
"remaining": 0,
"total": 0,
"used": 0
},
"status": "inuse"
},
"drive_id": "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"
}