Repository: liupan1890/aliyunpan
Branch: v3
Commit: b3108ebbdda5
Files: 250
Total size: 2.1 MB
Directory structure:
gitextract_g6ltbs2_/
├── .gitignore
├── .prettierrc
├── README.md
├── adrive sdk/
│ ├── ReadMe.md
│ ├── account.md
│ ├── aims.md
│ ├── album.md
│ ├── archive.md
│ ├── book.md
│ ├── contact.md
│ ├── drive.md
│ ├── file.md
│ ├── filedir.md
│ ├── fileupload.md
│ ├── image.md
│ ├── member.md
│ ├── note.md
│ ├── offline.md
│ ├── recyclebin.md
│ ├── reddot.md
│ ├── sbox.md
│ ├── search.md
│ ├── sfiia.md
│ ├── share.md
│ ├── timeline.md
│ ├── token.md
│ ├── user.md
│ └── video.md
├── changelog.txt
├── crx/
│ ├── devtools.html
│ ├── devtools.js
│ └── manifest.json
├── doc/
│ ├── info.md
│ ├── v2.8.x 使用PotPlayer.md
│ └── v2.8.x 阿里云盘小白羊版和官方性能测试.md
├── electron-builder.json
├── nano-staged.mjs
├── package.json
├── public/
│ ├── comlink.js
│ ├── iconfont.css
│ ├── lang/
│ │ ├── en.js
│ │ └── zh-CN.js
│ ├── main.html
│ ├── main2.html
│ ├── prism-vsc-dark-plus.css
│ ├── prism.js
│ ├── sha1filework.js
│ ├── silvermine-videojs-quality-selector.css
│ ├── wasm.wasm
│ └── wasm_exec.js
├── src/
│ ├── main/
│ │ ├── index.ts
│ │ ├── mainfile.ts
│ │ └── window.ts
│ ├── preload/
│ │ ├── index.ts
│ │ └── preload-env.d.ts
│ └── renderer/
│ ├── App.vue
│ ├── aliapi/
│ │ ├── alihttp.ts
│ │ ├── alimodels.ts
│ │ ├── archive.ts
│ │ ├── batch.ts
│ │ ├── dirfilelist.ts
│ │ ├── dirlist.ts
│ │ ├── file.ts
│ │ ├── filecmd.ts
│ │ ├── fileicon.ts
│ │ ├── filewalk.ts
│ │ ├── following.ts
│ │ ├── models.ts
│ │ ├── server.tsx
│ │ ├── share.ts
│ │ ├── sharelist.ts
│ │ ├── trash.ts
│ │ ├── upload.ts
│ │ ├── uploaddisk.ts
│ │ ├── uploadhash.ts
│ │ ├── uploadhashpool.ts
│ │ ├── uploadmem.ts
│ │ ├── user.ts
│ │ └── utils.ts
│ ├── assets/
│ │ ├── antd.css
│ │ ├── fileitem.css
│ │ └── global.css
│ ├── down/
│ │ ├── DownDowned.vue
│ │ ├── DownDowning.vue
│ │ ├── DownM3U8.vue
│ │ ├── DownSync.vue
│ │ ├── DownUploaded.vue
│ │ ├── DownUploading.vue
│ │ ├── downdal.ts
│ │ ├── downingstore.ts
│ │ ├── downmenu.ts
│ │ ├── index.vue
│ │ ├── uploadedstore.ts
│ │ └── uploadingstore.ts
│ ├── env.d.ts
│ ├── global.d.ts
│ ├── layout/
│ │ ├── MyLoading.vue
│ │ ├── MyModal.vue
│ │ ├── MySplit.vue
│ │ ├── MySwitch.vue
│ │ ├── MySwitchTab.vue
│ │ ├── MyTags.vue
│ │ ├── PageCode.vue
│ │ ├── PageHelp.vue
│ │ ├── PageImage.vue
│ │ ├── PageLoading.vue
│ │ ├── PageMain.vue
│ │ ├── PageOffice.vue
│ │ ├── PageVideo.vue
│ │ ├── PageVideoXBT.vue
│ │ ├── PageWorker.vue
│ │ └── pagemain.ts
│ ├── main.ts
│ ├── pan/
│ │ ├── PanLeft.vue
│ │ ├── PanRight.vue
│ │ ├── index.vue
│ │ ├── menus/
│ │ │ ├── DirLeftMenu.vue
│ │ │ ├── DirTopPath.vue
│ │ │ ├── FileRightMenu.vue
│ │ │ ├── FileTopbtn.vue
│ │ │ ├── PanTopbtn.vue
│ │ │ ├── TrashRightMenu.vue
│ │ │ └── TrashTopbtn.vue
│ │ ├── pandal.ts
│ │ ├── panfilestore.ts
│ │ ├── pantreestore.ts
│ │ └── topbtns/
│ │ ├── AlphaModal.vue
│ │ ├── ArchiveModal.vue
│ │ ├── ArchivePasswordModal.vue
│ │ ├── CopyFileTreeModal.vue
│ │ ├── CreatNewDirModal.vue
│ │ ├── CreatNewDirMultiModal.vue
│ │ ├── CreatNewFileModal.vue
│ │ ├── CreatNewShareLinkModal.vue
│ │ ├── DLNAPlayerModal.vue
│ │ ├── DaoRuShareLinkModal.vue
│ │ ├── DaoRuShareLinkMultiModal.vue
│ │ ├── DownloadModal.vue
│ │ ├── M3U8DownloadModal.vue
│ │ ├── RenameModal.vue
│ │ ├── RenameMultiModal.vue
│ │ ├── SearchPanModal.vue
│ │ ├── SelectPanDirModal.vue
│ │ ├── ShuXingModal.vue
│ │ ├── ShuXingMultiModal.vue
│ │ ├── UploadModal.vue
│ │ ├── renamemulti.ts
│ │ └── topbtn.ts
│ ├── pic/
│ │ ├── PicLeft.vue
│ │ ├── PicRight.vue
│ │ └── index.vue
│ ├── rss/
│ │ ├── ScanDAL.ts
│ │ ├── appsame/
│ │ │ ├── AppSame.vue
│ │ │ └── same.ts
│ │ ├── index.vue
│ │ ├── rssdrivecopy/
│ │ │ ├── RssDriveCopy.vue
│ │ │ └── drivecopy.ts
│ │ ├── rssjiami/
│ │ │ ├── RssJiaMi.vue
│ │ │ └── jiami.ts
│ │ ├── rssrename/
│ │ │ └── RssRename.vue
│ │ ├── rssscanclean/
│ │ │ ├── RssScanClean.vue
│ │ │ └── ScanClean.ts
│ │ ├── rssscanenmpty/
│ │ │ ├── RssScanEnmpty.vue
│ │ │ └── scanenmpty.ts
│ │ ├── rssscanpunish/
│ │ │ ├── RssScanPunish.vue
│ │ │ └── scanpunish.ts
│ │ ├── rssscansame/
│ │ │ ├── RssScanSame.vue
│ │ │ └── scansame.ts
│ │ ├── rssusercopy/
│ │ │ ├── RssUserCopy.vue
│ │ │ └── usercopy.ts
│ │ └── rssxima/
│ │ ├── RssXiMa.vue
│ │ └── xima.ts
│ ├── setting/
│ │ ├── SettingDebug.vue
│ │ ├── SettingDown.vue
│ │ ├── SettingLog.vue
│ │ ├── SettingPan.vue
│ │ ├── SettingPlay.vue
│ │ ├── SettingProxy.vue
│ │ ├── SettingUI.vue
│ │ ├── SettingUpload.vue
│ │ ├── ShutDown.vue
│ │ ├── index.vue
│ │ └── settingstore.ts
│ ├── share/
│ │ ├── following/
│ │ │ ├── FollowingDAL.ts
│ │ │ ├── MyFollowingRight.vue
│ │ │ ├── MyFollowingStore.ts
│ │ │ ├── OtherFollowingRight.vue
│ │ │ └── OtherFollowingStore.ts
│ │ ├── index.vue
│ │ └── share/
│ │ ├── EditShareLinkModal.vue
│ │ ├── MyShareRight.vue
│ │ ├── MyShareStore.ts
│ │ ├── OtherShareRight.vue
│ │ ├── OtherShareStore.ts
│ │ ├── ShareDAL.ts
│ │ ├── ShareSiteRight.vue
│ │ └── ShowShareLinkModal.vue
│ ├── store/
│ │ ├── appstore.ts
│ │ ├── footstore.ts
│ │ ├── index.ts
│ │ ├── keyboardstore.ts
│ │ ├── logstore.ts
│ │ ├── modalstore.ts
│ │ ├── protobuf.ts.bak
│ │ ├── serverstore.ts
│ │ ├── treestore.ts
│ │ └── winstore.ts
│ ├── transfer/
│ │ ├── uploaddal.ts
│ │ ├── uploadingdal.ts
│ │ └── uploadingdata.ts
│ ├── user/
│ │ ├── UserInfo.vue
│ │ ├── UserLogin.vue
│ │ ├── UserSpaceModal.vue
│ │ ├── userdal.ts
│ │ └── userstore.ts
│ ├── utils/
│ │ ├── antdtree.ts
│ │ ├── appcache.ts
│ │ ├── config.ts
│ │ ├── db.ts
│ │ ├── dbcache.ts
│ │ ├── dbdown.ts
│ │ ├── dbupload.ts
│ │ ├── debounce.ts
│ │ ├── debuglog.ts
│ │ ├── electronhelper.ts
│ │ ├── filehelper.ts
│ │ ├── filenameorder.ts
│ │ ├── foot.ts
│ │ ├── format.ts
│ │ ├── idhelper.ts
│ │ ├── keyboardhelper.ts
│ │ ├── levemap.ts
│ │ ├── message.ts
│ │ ├── modal.ts
│ │ ├── openfile.ts
│ │ ├── selecthelper.ts
│ │ ├── sha1workerpool.ts
│ │ ├── shareurl.ts
│ │ ├── utils.ts
│ │ └── worker.ts
│ └── workerpage/
│ ├── uidownload.ts
│ ├── uiupload.ts
│ ├── uploader.ts
│ └── workercmd.ts
├── tsconfig.json
├── types.d.ts
├── v2.10.19性能测试.md
├── v2.11.11自定义播放软件.md
├── 开源代码统计.md
└── 源码开发打包帮助.md
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
node_modules
.DS_Store
dist
dist-ssr
*.local
.debug.env
tmp
**/.tmp
release
================================================
FILE: .prettierrc
================================================
{
"singleQuote": true,
"printWidth": 260,
"semi": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
"wrapAttributes": false,
"sortAttributes": true,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf",
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
]
}
================================================
FILE: README.md
================================================
# 阿里云盘小白羊版
#### 项目说明
基于阿里云盘网页版开发的PC客户端,支持win7-11,macOS,linux
> **04.14:[v2.12.14版已发布](https://github.com/liupan1890/aliyunpan/issues/639),适配官网升级**
> **2022-01-02:在憋大招,耐心等待v3版**
v1.6.29:[https://wwe.lanzoui.com/b01npsg8h](https://wwe.lanzoui.com/b01npsg8h)
v2.12.14:[https://wwe.lanzoui.com/b01nqc4gd](https://wwe.lanzoui.com/b01nqc4gd)
MacOS:[https://www.macwk.com/soft/aliyun-drive-xiaobaiyang](https://www.macwk.com/soft/aliyun-drive-xiaobaiyang)
Mac版由macwk.com使用自有签名打包dmg,可以简单点击安装了(不需要输入终端命令),推荐下载此版本,已测MacOS10.12-11.4,兼容M1
已经发布在小众软件发现频道,大爱小众[meta.appinn.net](https://meta.appinn.net)
已发布了使用帮助文档 [https://www.yuque.com/liupan1890/xiaobaiyang](https://www.yuque.com/liupan1890/xiaobaiyang)
``````
2021年11月28日 已完成功能:
多账号登录、常用文件操作(新建文件夹、收藏、重命名、复制、移动、删除、详情、视频雪碧图)、
在线播放原始视频、在线播放转码视频、在线预览图片、在线预览文本、在线预览 word/excel/ppt/pdf、
连接到远程 Aria2 下载、上传文件、上传文件夹、批量改名、在线解压、回收站、收藏夹、
分享文件、导入阿里云分享链接、缩略图列表、网盘内文件搜索、视频文件洗码
等待完成的功能:
相册功能、网盘和相册间文件互相复制、文件同步盘、重复文件扫描、帐号间文件复制
``````
#

#
#### 为什么要用小白羊?
#### 一:因为更快
##### 上传和下载4.4万个json格式小文件(共24GB):
| 程序 | 总用时 | 用时基准 |
| --- | ---: | ---: |
| 上传&小白羊版 v2.10 | 24分钟 | :zap:58% |
| 上传&PC客户端 v2.2.6 | 41分钟 | 100% |
| ... | | | | |
| 下载&小白羊版 v2.10 | 25分钟 | :zap:42% |
| 下载&PC客户端 v2.2.6 | 59分钟 | 100% |
##### 上传和下载33个大文件(共90GB):
| 程序 | 总用时 | 用时基准 |
| --- | ---: | ---: |
| 上传&小白羊版 v2.10 | 1分10秒 | :zap:44% |
| 上传&PC客户端 v2.2.6 | 2分40秒 | 100% |
| ... | | | | |
| 下载&小白羊版 v2.10 | 38分钟 | :zap:52% |
| 下载&PC客户端 v2.2.6 | 72分钟 | 100% |
详情参阅 :[v2.10.19性能测试](https://github.com/liupan1890/aliyunpan/blob/main/v2.10.19%E6%80%A7%E8%83%BD%E6%B5%8B%E8%AF%95.md) 的性能测试文档
#### 二:因为更好
小白羊支持同时登录多个账号管理
小白羊特有文件夹树,可以快速方便的操作
小白羊支持直接在线播放网盘里的各种格式的视频并且是高清原画,支持外挂字幕/音轨/播放速度调整,比官方的格式更多更清晰
小白羊可以显示文件夹体积,可以文件夹和文件混合排序(文件名/体积/时间),并且文件名排序时更准确!
小白羊可以通过远程Aria2功能把文件直接下载到远程的VPS/NAS上
小白羊可以批量的对 大量文件/多层嵌套的文件夹 一键重命名
小白羊可以快速复制文件,可以直接预览视频的雪碧图,可以直接删除文件
小白羊支持数万文件夹和数万文件的管理,支持一次性列出文件夹里包含的全部文件
小白羊支持单次上传/下载 一百万 量级的文件/文件夹
小白羊仍在努力开发新功能,让大家使用起来更方便!
#
#### 常见问题请参阅帮助文档
#### 特别感谢 @jkqxl @iD2073 @ybbluesky 等为小白羊提供了大量的优化建议
================================================
FILE: adrive sdk/ReadMe.md
================================================
### 阿里云盘接口
> 2022-03整理的阿里云盘SDK接口数据
仅用来记录官方提供的接口参数,共整理了144个,比较全了,与编程语言无关,方便大家据此开发
================================================
FILE: adrive sdk/account.md
================================================
#### 刷新 token
POST: `https://auth.aliyundrive.com/v2/account/token`
```json
{ "grant_type": "refresh_token", "app_id": "pJZInNHN2dZWk8qg", "refresh_token": "c65bf6d104ac510885c0124d74c4a099" }
```
Response:
```json
{
"default_sbox_drive_id": "9600002",
"role": "user",
"device_id": "2909000000004f01aa28264bfc30e4ed",
"user_name": "151***111",
"need_link": false,
"expire_time": "2022-03-21T06:33:21Z",
"pin_setup": true,
"need_rp_verify": false,
"avatar": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/2GhCur3G%2F...",
"user_data": {
"DingDingRobotUrl": "https://oapi.dingtalk.com/robot/send?access_token=0b4a936d0e...",
"EncourageDesc": "内测期间有效反馈前10名用户将获得终身免费会员",
"FeedBackSwitch": true,
"FollowingDesc": "34848372",
"back_up_config": {
"手机备份": { "folder_id": "605c0c29b7acf78b6ee34bf095594f7654e57d68", "photo_folder_id": "605c0c299af37539f3d34879b2f0d1c5543f27d5", "sub_folder": {}, "video_folder_id": "605c0c29e520154c22644bed904b76b25ced317a" }
},
"ding_ding_robot_url": "https://oapi.dingtalk.com/robot/send?access_token=0b4a936d0e...",
"encourage_desc": "内测期间有效反馈前10名用户将获得终身免费会员",
"feed_back_switch": true,
"following_desc": "34848372"
},
"token_type": "Bearer",
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..................",
"default_drive_id": "9600002",
"domain_id": "bj29",
"refresh_token": "b2d9c244d8a24df38aa1a5dec59e2a92",
"is_first_login": false,
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"nick_name": "myname",
"exist_link": [],
"state": "",
"expires_in": 7200,
"status": "enabled"
}
```
#### 退出登录
POST: `https://auth.aliyundrive.com/v2/account/revoke`
```json
```
Response:
```json
```
#### 检查账号是否存在 x
POST: `https://auth.aliyundrive.com/v2/account/mobile/check_exist`
```json
{ "app_id": "pJZInNHN2dZWk8qg", "phone_number": "151***111", "phone_region": "86" }
```
Response:
```json
{ "is_exist": true }
```
================================================
FILE: adrive sdk/aims.md
================================================
#### 探索-列出图片分类最多的前几个分类
POST: `https://api.aliyundrive.com/v2/aims/list_hints`
```json
{ "user_id": "9400000000bc480bbcbbb1e074f55a7f", "limit": 5 }
```
Response:
```json
["白色", "鞋", "服装", "颜色", "黑色"]
```
#### 探索-列出图片分类(对应的是 label)
POST: `https://api.aliyundrive.com/v2/aims/list_tags`
```json
{ "all": false, "image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg", "video_thumbnail_process": "video/snapshot,t_7000,f_jpg,w_800,h_600,ar_auto,m_fast", "drive_id": "9600002" }
```
Response:
```json
{
"tags": [
{
"count": 22,
"cover_file_category": "",
"cover_file_id": "6061000000001af7c3034e3590ea7d5a50f58015",
"cover_overall_score": 0.7444725632667542,
"cover_tag_confidence": 0.9806441068649292,
"cover_url": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/HCBUxQOF%2F...",
"name": "截图"
},
{
"count": 6,
"cover_file_category": "",
"cover_file_id": "6061000000001af7c3034e3590ea7d5a50f58015",
"cover_overall_score": 0.660460352897644,
"cover_tag_confidence": 0.8765541911125183,
"cover_url": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/HCBUxQOF%2F...",
"name": "健身"
}
]
}
```
#### 探索-列出一个分类(label)的全部图片
POST: `https://api.aliyundrive.com/v2/file/search`
```json
{
"return_total_count": true,
"image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg",
"order_by": "last_access_at DESC,updated_at DESC,image_time DESC",
"query": "(label = '截图') and category in ['video','image'] and status = 'available' and hidden = false",
"limit": 100,
"drive_id": "9600002"
}
```
Response:
```json
filelist
```
#### 探索-列出全部回忆
POST: `https://api.aliyundrive.com/v2/aims/list_stories`
```json
{ "drive_id": "9600002", "skip_stories_creation": false, "cover_image_thumbnail_process": "image/resize,m_lfit,w_800/format,jpg" }
```
Response:
```json
{
"items": [
{
"cover_file_id": "6061000000001af7c3034e3590ea7d5a50f58015",
"cover_file_thumbnail_url": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/aUDpMBAO%2F...",
"created_at": "2022-03-13T21:31:47.210563978+08:00",
"face_group_ids": ["Group-00000000-1703-4fc8-4f56-369478ed14df"],
"story_end_time": "",
"story_file_list": [
{ "file_id": "623b00000000d89ef21d4118838aed83de7575ba" },
{ "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
],
"story_id": "903C5705-0000-0000-4fc8-42B97E29C65C",
"story_name": "熟悉的TA",
"story_start_time": "",
"story_sub_type": "ImportantPerson",
"story_type": "ImportantPerson",
"updated_at": "2022-03-13T21:31:47.21056415+08:00",
"cover_file": {
"category": "image",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2021-09-08T13:45:59.755Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "jpg",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"image_media_metadata": {
"faces": "[{\"FaceConfidence\":0.9646940231323242,\"EmotionConfidence\":0.974002480506897,\"ImageUri\":\"\",\"FaceQuality\":0.8240875005722046,\"Similarity\":0,\"ExternalId\":\"\",\"Attractive\":0.95,\"AttractiveConfidence\":0,\"Age\":19,\"AgeConfidence\":0,\"Gender\":\"FEMALE\",\"Emotion\":\"SAD\",\"GenderConfidence\":1,\"FaceId\":\"45f700000000ac19ffbf56adcaa98e3944f28c087cd36b9bc1acde5ae5829fa3\",\"GroupId\":\"Group-00000000-1703-4fc8-5f56-369478ed14df\",\"FaceAttributes\":{\"Glasses\":\"NONE\",\"MaskConfidence\":0.9999961853027344,\"Mask\":\"NONE\",\"GlassesConfidence\":1,\"Beard\":\"NONE\",\"BeardConfidence\":1,\"FaceBoundary\":{\"Width\":558,\"Height\":787,\"Top\":318,\"Left\":1075},\"HeadPose\":{\"Pitch\":8.109945297241211,\"Roll\":-11.779093742370605,\"Yaw\":-12.086345672607422}},\"EmotionDetails\":{\"SURPRISED\":0.0010840623872354627,\"HAPPY\":0.0072783417999744415,\"ANGRY\":0.00025470455875620246,\"DISGUSTED\":0.0018990141106769443,\"SAD\":0.974002480506897,\"CALM\":0.005655393470078707,\"SCARED\":0.006041224580258131},\"SimilarFaces\":null}]",
"faces_thumbnail": [
{
"face_group_id": "Group-00000000-1703-4fc8-5f56-369478ed14df",
"face_id": "45f700000000ac19ffbf56adcaa98e3944f28c087cd36b9bc1acde5ae5829fa3",
"face_thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F..."
}
],
"height": 3600,
"image_quality": { "overall_score": 0.639841616153717 },
"time": "2022-03-13T21:31:47.210563978+08:00",
"width": 2400
},
"labels": ["面部", "日常行为"],
"mime_extension": "jpg",
"mime_type": "image/jpeg",
"name": "44.jpg",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"punish_flag": 2,
"revision_id": "6138000000000b81a8164550b1e7cba1d7fbe111",
"size": 1974176,
"starred": false,
"status": "available",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"trashed": false,
"type": "file",
"updated_at": "2021-09-08T13:46:01.896Z",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F..."
}
}
]
}
```
#### 探索-读取一个回忆的信息(名称、人物、图片)
POST: `https://api.aliyundrive.com/v2/aims/get_story`
```json
{ "drive_id": "9600002", "story_id": "903C5705-0000-0000-4fc8-42B97E29C65C" }
```
Response:
```json
{
"cover_file_id": "6061000000001af7c3034e3590ea7d5a50f58015",
"cover_file_thumbnail_url": "https://bj29.cn-beijing.data.alicloudccp.com/RV5OBihM%2F...",
"created_at": "2022-03-13T21:31:47.210563978+08:00",
"face_group_ids": ["Group-00000000-1763-4fc8-bf56-369478ed14df"],
"story_end_time": "",
"story_file_list": [
{
"category": "image",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2021-09-08T13:45:59.755Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "jpg",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"image_media_metadata": {
"faces": "[{\"FaceConfidence\":0.9646940231323242,\"EmotionConfidence\":0.974002480506897,\"ImageUri\":\"\",\"FaceQuality\":0.8240875005722046,\"Similarity\":0,\"ExternalId\":\"\",\"Attractive\":0.95,\"AttractiveConfidence\":0,\"Age\":19,\"AgeConfidence\":0,\"Gender\":\"FEMALE\",\"Emotion\":\"SAD\",\"GenderConfidence\":1,\"FaceId\":\"45f700000000ac19ffbf56adcaa98e3944f28c087cd36b9bc1acde5ae5829fa3\",\"GroupId\":\"Group-00000000-1703-4fc6-bf56-369478ed14df\",\"FaceAttributes\":{\"Glasses\":\"NONE\",\"MaskConfidence\":0.9999961853027344,\"Mask\":\"NONE\",\"GlassesConfidence\":1,\"Beard\":\"NONE\",\"BeardConfidence\":1,\"FaceBoundary\":{\"Width\":558,\"Height\":787,\"Top\":318,\"Left\":1075},\"HeadPose\":{\"Pitch\":8.109945297241211,\"Roll\":-11.779093742370605,\"Yaw\":-12.086345672607422}},\"EmotionDetails\":{\"SURPRISED\":0.0010840623872354627,\"HAPPY\":0.0072783417999744415,\"ANGRY\":0.00025470455875620246,\"DISGUSTED\":0.0018990141106769443,\"SAD\":0.974002480506897,\"CALM\":0.005655393470078707,\"SCARED\":0.006041224580258131},\"SimilarFaces\":null}]",
"faces_thumbnail": [
{
"face_group_id": "Group-00000000-1703-4fc8-bf56-369478ed14df",
"face_id": "45f700000000ac19ffbf56adcaa98e3944f28c087cd36b9bc1acde5ae5829fa3",
"face_thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F..."
}
],
"height": 3600,
"image_quality": { "overall_score": 0.639841616153717 },
"width": 2400
},
"labels": [
"面部",
"日常行为"
],
"name": "44.jpg",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"size": 1974176,
"starred": false,
"status": "available",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"type": "file",
"updated_at": "2021-09-08T13:46:01.896Z",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F..."
}
],
"story_id": "903C5705-0000-0000-4fc8-42B97E29C65C",
"story_name": "fang的高光时刻",
"story_start_time": "",
"story_sub_type": "ImportantPerson",
"story_type": "ImportantPerson",
"updated_at": "2022-03-13T21:31:47.21056415+08:00"
}
```
#### 清理空间-统计数量
POST: `https://api.aliyundrive.com/v2/aims/clutter_removal/count`
```json
{ "drive_id": "9600002" }
```
Response:
```json
{ "screenshot": 20, "text": 26 }
```
#### 清理空间-清理屏幕截图
POST: `https://api.aliyundrive.com/v2/aims/clutter_removal/list`
```json
{ "type": "screenshot", "drive_id": "9600002" }
```
Response:
```json
filelist
```
#### 清理空间-清理文本图片
POST: `https://api.aliyundrive.com/v2/aims/clutter_removal/list`
```json
{ "type": "text", "drive_id": "9600002" }
```
Response:
```json
filelist
```
================================================
FILE: adrive sdk/album.md
================================================
#### 创建相册
POST: `https://api.aliyundrive.com/adrive/v1/album/create`
```json
{ "name": "未命名", "description": "" }
```
Response:
```json
{
"owner": "ccff000000004d75b5788a481eed8386",
"name": "未命名",
"description": "",
"album_id": "cfe400000000478599575b69356c5a4962383669",
"file_count": 0,
"image_count": 0,
"video_count": 0,
"created_at": 1647851113891,
"updated_at": 1647851113891
}
```
#### 修改相册
POST: `https://api.aliyundrive.com/adrive/v1/album/update`
```json
{ "album_id": "cfe400000000478599575b69356c5a4962383669", "description": "ff", "name": "未命名" }
```
Response:
```json
{
"owner": "ccff000000004d75b5788a481eed8386",
"name": "未命名",
"description": "",
"album_id": "cfe400000000478599575b69356c5a4962383669",
"file_count": 0,
"image_count": 0,
"video_count": 0,
"created_at": 1647851113891,
"updated_at": 1647851113891
}
```
#### 删除相册(不会删除相册内文件)
POST: `https://api.aliyundrive.com/adrive/v1/album/delete`
```json
{ "album_id": "cfe400000000478599575b69356c5a4962383669" }
```
Response:
```json
{}
```
#### 读取相册
POST: `https://api.aliyundrive.com/adrive/v1/album/get`
```json
{ "album_id": "cfe400000000478599575b69356c5a4962383669" }
```
Response:
```json
{
"owner": "ccff000000004d75b5788a481eed8386",
"name": "未命名",
"description": "",
"cover": {
"list": [
{
"trashed": false,
"category": "image",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2022-03-21T08:27:15.671Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "jpeg",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"image_media_metadata": { "image_quality": {} },
"mime_type": "image/jpeg",
"name": "fa9cb4682043bb141b48dd82.jpeg",
"parent_file_id": "root",
"punish_flag": 0,
"size": 586988,
"starred": false,
"status": "available",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"type": "file",
"updated_at": "2022-03-21T08:27:16.226Z",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"ex_fields_info": {}
}
]
},
"album_id": "cfe400000000478599575b69356c5a4962383669",
"file_count": 1,
"image_count": 1,
"video_count": 0,
"created_at": 1647851113891,
"updated_at": 1647851236638
}
```
#### 添加文件到相册
POST: `https://api.aliyundrive.com/adrive/v1/album/add_files`
```json
{ "album_id": "cfe400000000478599575b69356c5a4962383669", "drive_file_list": [{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }] }
```
Response:
```json
{
"file_list": [
{
"trashed": false,
"category": "image",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2022-03-21T08:27:15.671Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "jpeg",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"image_media_metadata": { "image_quality": {} },
"mime_type": "image/jpeg",
"name": "fa9cb4682043bb141b48dd82.jpeg",
"parent_file_id": "root",
"punish_flag": 0,
"size": 586988,
"starred": false,
"status": "available",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"type": "file",
"updated_at": "2022-03-21T08:27:16.226Z",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"ex_fields_info": {}
}
]
}
```
#### 从相册移除文件
POST: `https://api.aliyundrive.com/adrive/v1/album/delete_files`
```json
{ "album_id": "cfe400000000478599575b69356c5a4962383669", "drive_file_list": [{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }] }
```
Response:
```json
{}
```
#### 列出相册内文件
POST: `https://api.aliyundrive.com/adrive/v1/album/list_files`
```json
{
"album_id": "cfe400000000478599575b69356c5a4962383669",
"image_thumbnail_process": "image/resize,w_400/format,jpeg",
"video_thumbnail_process": "video/snapshot,t_0,f_jpg,ar_auto,w_1000",
"image_url_process": "image/resize,w_1920/format,jpeg",
"filter": "",
"fields": "*",
"limit": 100,
"order_by": "file_image_time",
"order_direction": "DESC"
}
```
Response:
```json
{
"items": [
{
"category": "image",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2022-03-21T08:27:15.671Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "jpeg",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"image_media_metadata": { "image_quality": {} },
"name": "fa9cb4682043bb141b48dd82.jpeg",
"parent_file_id": "root",
"size": 586988,
"starred": false,
"status": "available",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"type": "file",
"updated_at": "2022-03-21T08:27:16.226Z",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F..."
}
]
}
```
#### 上传文件到相册
POST: `https://api.aliyundrive.com/adrive/v1/biz/albums/file/create`
```json
{
"drive_id": "9600002",
"part_info_list": [{ "part_number": 1 }],
"parent_file_id": "root",
"name": "fa9cb4682043bb141b48dd82.jpeg",
"type": "file",
"check_name_mode": "auto_rename",
"size": 586988,
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"proof_code": "TIo2j2wSMV4=",
"proof_version": "v1"
}
```
Response:
```json
{
"type": "file",
"parent_file_id": "root",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"domain_id": "bj29",
"trashed_at": null,
"file_name": "fa9cb4682043bb141b48dd82.jpeg",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"encrypt_mode": "none",
"location": "cn-beijing",
"rapid_upload": false,
"part_info_list": [
{
"part_number": 1,
"upload_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"internal_upload_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"content_type": ""
}
]
}
```
================================================
FILE: adrive sdk/archive.md
================================================
#### 在线打开压缩包
POST: `https://api.aliyundrive.com/v2/archive/list`
```json
{ "archive_type": "zip", "domain_id": "bj29", "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
Response:
```json
{ "state": "Running", "file_list": {}, "task_id": "e026000000007f609bcd6aa71b8fde94" }
```
#### 在线打开压缩包进度
POST: `https://api.aliyundrive.com/v2/archive/status`
```json
{ "domain_id": "bj29", "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "task_id": "e026000000007f609bcd6aa71b8fde94" }
```
Response:
```json
{ "code": "LimitArchive", "message": "Archive reach limit" }
{"code":"BadArchive","message":"Archive is bad"}
{"code":"InvalidPassword","message":"Password is invalid"}
```
```json
{ "state": "Running", "file_list": {}, "task_id": "e026000000007f609bcd6aa71b8fde94", "progress": 0 }
```
```json
{
"state": "Succeed",
"file_list": {
"filezi": {
"is_folder": true,
"items": [
{
"is_folder": true,
"items": [
{ "is_folder": false, "items": [], "name": "filezi/electron/electron", "size": 140256360, "updated_at": "2022-03-23T04:11:45.000Z" },
{ "is_folder": false, "items": [], "name": "filezi/electron/libvk_swiftshader.so", "size": 4168528, "updated_at": "2022-03-23T04:11:45.000Z" },
{
"is_folder": true,
"items": [
{ "is_folder": false, "items": [], "name": "filezi/electron/swiftshader/libEGL.so", "size": 256032, "updated_at": "2022-03-23T04:11:45.000Z" },
{ "is_folder": false, "items": [], "name": "filezi/electron/swiftshader/libGLESv2.so", "size": 2580600, "updated_at": "2022-03-23T04:11:45.000Z" }
],
"name": "filezi/electron/swiftshader",
"size": 0,
"updated_at": "1970-01-01T00:00:00.000Z"
}
],
"name": "filezi/electron",
"size": 0,
"updated_at": "1970-01-01T00:00:00.000Z"
},
{ "is_folder": false, "items": [], "name": "filezi/linux使用帮助.txt", "size": 509, "updated_at": "2022-03-23T04:11:45.000Z" }
],
"name": "filezi",
"size": 0,
"updated_at": "1970-01-01T00:00:00.000Z"
}
},
"task_id": "e026000000007f609bcd6aa71b8fde94",
"progress": 100
}
```
#### 在线打开压缩包(rar 带密码)
```js
//第一次,没有文件缓存
//POST: `https://api.aliyundrive.com/v2/archive/list`
{"code":"BadArchive","message":"Archive is bad"}//返回文件锁坏
//POST: `https://api.aliyundrive.com/v2/archive/list` "password":"123"
//返回正常的 { "state": "Succeed", "file_list": { ...
```
```js
//第二次,有缓存
//POST: `https://api.aliyundrive.com/v2/archive/list`
{"code":"InvalidPassword","message":"Password is invalid"}//返回需要密码
//POST: `https://api.aliyundrive.com/v2/archive/list` "password":"123"
//返回正常的 { "state": "Succeed", "file_list": { ...
```
#### 在线解压
POST: `https://api.aliyundrive.com/v2/archive/uncompress`
```json
{ "archive_type": "zip", "domain_id": "bj29", "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "target_drive_id": "9600002", "target_file_id": "61a300000000e67e5cf8489fab317ef345373b80" }
```
```json
{
"archive_type": "zip",
"domain_id": "bj29",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"file_list": ["lc-design-demo/assets/views/home.xml", "lc-design-demo/assets/views/layout"],
"password": "123",
"target_drive_id": "9600002",
"target_file_id": "61a300000000e67e5cf8489fab317ef345373b80"
}
```
Response:
```json
{ "state": "Running", "task_id": "e026000000007f609bcd6aa71b8fde94" }
```
#### 在线解压进度
POST: `https://api.aliyundrive.com/v2/archive/status`
```json
{ "domain_id": "bj29", "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "task_id": "e026000000007f609bcd6aa71b8fde94" }
```
Response:
```json
{ "state": "Running", "file_list": {}, "task_id": "e026000000007f609bcd6aa71b8fde94", "progress": -1 }
```
```json
{ "state": "Running", "file_list": {}, "task_id": "e026000000007f609bcd6aa71b8fde94", "progress": 15 }
```
```json
{ "state": "Succeed", "file_list": {}, "task_id": "e026000000007f609bcd6aa71b8fde94", "progress": 100 }
```
#### 打包下载
POST: `https://api.aliyundrive.com/v2/file/archive_files`
```json
{ "name": "aname.zip", "drive_id": "9600002", "files": [{ "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }] }
```
Response:
```json
{ "async_task_id": "9fcb1e1d-0000-0000-b30d-387e04dcafcb" }
```
#### 打包下载进度
POST: `https://api.aliyundrive.com/v2/async_task/get`
```json
{ "async_task_id": "9fcb1e1d-0000-0000-b30d-387e04dcafcb" }
```
Response:
```json
{
"async_task_id": "9fcb1e1d-0000-0000-b30d-387e04dcafcb",
"state": "Succeed",
"err_code": 200,
"total_process": 167238406,
"consumed_process": 167238406,
"url": "https://ccp-bj29-video-preview.oss-cn-beijing.aliyuncs.com/archive%2F9fcb1e1d-e9dd-43d0-b30d-387e04dcafcb?response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27aname.zip\u0026x-oss-access-key-id=LTAIsE5mAn2F493Q\u0026x-oss-expires=1648014906\u0026x-oss-signature=5E4UEDoNKoUFDKsH41BQxlsc0BvoTeMjS4QZv5x1U%2B0%3D\u0026x-oss-signature-version=OSS2",
"punished_file_count": 0
}
```
================================================
FILE: adrive sdk/book.md
================================================
#### 列出图书
POST: `https://api.aliyundrive.com/adrive/v2/book/list`
```json
{ "book_progress_type": "ALL", "limit": 1, "marker": "", "order_by": "name asc", "show_hidden": false }
```
Response:
```json
{
"items": [
{
"category": "doc",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2021-11-22T03:36:19.680Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "epub",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"name": "Republic.epub",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"punish_flag": 0,
"size": 128000,
"starred": false,
"status": "available",
"type": "file",
"updated_at": "2022-01-12T12:44:16.835Z",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"user_meta": "{\"client\":\"web\"}",
"user_tags": { "book_show": "true" }
}
],
"next_marker": ""
}
```
#### 列出最近阅读的图书
POST: `https://api.aliyundrive.com/adrive/v2/book/recentList`
```json
{ "book_progress_type": "ALL", "limit": 1, "marker": "", "order_by": "name asc", "show_hidden": false }
```
Response:
```json
{
"items": [
{
"category": "doc",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2021-09-24T12:50:00.905Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "epub",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"name": "无声告白.epub",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"punish_flag": 0,
"size": 1027423,
"starred": false,
"status": "available",
"type": "file",
"updated_at": "2022-03-22T14:59:12.333Z",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"book_progress": "{\"bookName\":\"无声告白\",\"chapterNumber\":1,\"chapterPercent\":0.0,\"currentPageNumber\":-1,\"progress\":29,\"totalPageNumber\":-1,\"uid\":\"9400000000bc480bbcbbb1e074f55a7f\",\"updateTime\":1647961151874}",
"user_tags": {
"book_progress": "{\"bookName\":\"无声告白\",\"chapterNumber\":1,\"chapterPercent\":0.0,\"currentPageNumber\":-1,\"progress\":29,\"totalPageNumber\":-1,\"uid\":\"9400000000bc480bbcbbb1e074f55a7f\",\"updateTime\":1647961151874}",
"book_progress_percentage": "35",
"book_show": "true",
"epub_book_progress": "{\"uid\":\"9400000000bc480bbcbbb1e074f55a7f\",\"href\":\"\\/text\\/part0000.html\",\"type\":\"application\\/xhtml+xml\",\"locations\":{\"progression\":0,\"position\":2,\"totalProgression\":8.873114463176575E-4}}",
"start_read": "true"
},
"book_name": "无声告白",
"book_progress_percentage": 29
}
]
}
```
#### 添加到阅读室
POST: `https://api.aliyundrive.com/adrive/v2/book/update`
```json
{ "file_ids": ["623b00000000d89ef21d4118838aed83de7575ba"], "operation": 1 }
```
Response:
```text
HTTP/1.1 200 OK
```
#### 从阅读室移除
POST: `https://api.aliyundrive.com/adrive/v2/book/update`
```json
{ "file_ids": ["623b00000000d89ef21d4118838aed83de7575ba"], "operation": 2 }
```
Response:
```text
HTTP/1.1 200 OK
```
================================================
FILE: adrive sdk/contact.md
================================================
#### 通讯录列出
POST: `https://api.aliyundrive.com/adrive/v1/contact/list`
```json
{}
```
Response:
```json
{
"items": [
{
"id": 223963400,
"content": {
"format": "vcard",
"hash": "1a48648e8b140ae80be048f1681cfbe24a7b9579c2ffbabe2686eb79338dfe14",
"value": "BEGIN:VCARD\r\nVERSION:4.0\r\nPRODID:ez-vcard 0.11.2\r\nKIND:individual\r\nFN:高青\r\nN:高;青;;;\r\nTEL;TYPE=cell:15000065001\r\nEND:VCARD\r\n",
"version": "4.0"
},
"gmt_create": 1647864044589
},
{
"id": 224054214,
"content": {
"format": "vcard",
"hash": "978edd2d967b94b34d3a90c00cbd4819e239f21a6f72f6a2f87b522fe81a62f4",
"value": "BEGIN:VCARD\r\nVERSION:4.0\r\nPRODID:ez-vcard 0.11.2\r\nKIND:individual\r\nFN:木门\r\nN:木;门;;;\r\nTEL;TYPE=cell:03100000981\r\nEND:VCARD\r\n",
"version": "4.0"
},
"gmt_create": 1647864055972
}
],
"total_count": 2
}
```
#### 通讯录删除
POST: `https://api.aliyundrive.com/adrive/v1/contact/delete`
```json
{ "ids": [224206708] }
```
Response:
```json
{}
```
#### 通讯录备份添加
POST: `https://api.aliyundrive.com/adrive/v1/contact/add`
```json
{
"items": [
{
"hash": "978edd2d967b94b34d3a90c00cbd4819e239f21a6f72f6a2f87b522fe81a62f4",
"version": "4.0",
"value": "BEGIN:VCARD\r\nVERSION:4.0\r\nN:木;门\r\nTEL;TYPE=cell:03000080981\r\nKIND:individual\r\nEND:VCARD\r\n",
"avatar": "",
"format": "vcard"
}
]
}
```
Response:
```json
{ "items": [{ "id": 223963801, "content": { "format": "vcard", "hash": "978edd2d967b94b34d3a90c00cbd4819e239f21a6f72f6a2f87b522fe81a62f4", "version": "4.0" } }] }
```
================================================
FILE: adrive sdk/drive.md
================================================
#### 全部 drive
POST: `https://api.aliyundrive.com/v2/drive/list`
```json
{ "owner": "ccff000000004d75b5788a481eed8386" }
```
Response:
```json
{
"items": [
{
"domain_id": "bj29",
"drive_id": "9600002",
"drive_name": "alibum",
"description": "",
"creator": "",
"owner": "ccff000000004d75b5788a481eed8386",
"owner_type": "user",
"drive_type": "normal",
"status": "enabled",
"used_size": 739272268,
"total_size": -1,
"store_id": "b5e90000000041d084733b520ea8b57d",
"relative_path": "",
"encrypt_mode": "none",
"encrypt_data_access": false,
"created_at": "2021-03-29T04:02:57.981Z",
"permission": null,
"subdomain_id": ""
},
{
"domain_id": "bj29",
"drive_id": "9600002",
"drive_name": "Default",
"description": "Created by system",
"creator": "System",
"owner": "ccff000000004d75b5788a481eed8386",
"owner_type": "user",
"drive_type": "normal",
"status": "enabled",
"used_size": 7186746146291,
"total_size": 10737418240,
"store_id": "b5e90000000041d084733b520ea8b57d",
"relative_path": "",
"encrypt_mode": "none",
"encrypt_data_access": false,
"created_at": "2021-03-18T04:55:06.893Z",
"permission": null,
"subdomain_id": ""
},
{
"domain_id": "bj29",
"drive_id": "9600002",
"drive_name": "note_drive",
"description": "",
"creator": "",
"owner": "ccff000000004d75b5788a481eed8386",
"owner_type": "user",
"drive_type": "normal",
"status": "enabled",
"used_size": 502382874,
"total_size": -1,
"store_id": "b5e90000000041d084733b520ea8b57d",
"relative_path": "",
"encrypt_mode": "none",
"encrypt_data_access": false,
"created_at": "2021-10-24T11:29:12.773Z",
"permission": null,
"subdomain_id": ""
},
{
"domain_id": "bj29",
"drive_id": "9600002",
"drive_name": "Default",
"description": "Created by system",
"creator": "System",
"owner": "ccff000000004d75b5788a481eed8386",
"owner_type": "user",
"drive_type": "normal",
"status": "enabled",
"used_size": 227511979353,
"total_size": 10737418240,
"store_id": "b5e90000000041d084733b520ea8b57d",
"relative_path": "",
"encrypt_mode": "none",
"encrypt_data_access": false,
"created_at": "2021-03-18T04:55:06.936Z",
"permission": null,
"subdomain_id": ""
}
],
"next_marker": ""
}
```
#### 全部 drive
POST: `https://api.aliyundrive.com/v2/drive/list_my_drives`
```json
{ "owner": "ccff000000004d75b5788a481eed8386" }
```
Response:
```json
同上
```
#### 默认 drive(网盘)
POST: `https://api.aliyundrive.com/v2/drive/get_default_drive`
```json
```
Response:
```json
{
"domain_id": "bj29",
"drive_id": "9600002",
"drive_name": "Default",
"description": "Created by system",
"creator": "System",
"owner": "ccff000000004d75b5788a481eed8386",
"owner_type": "user",
"drive_type": "normal",
"status": "enabled",
"used_size": 7186746146291,
"total_size": 17536351469568,
"store_id": "b5e90000000041d084733b520ea8b57d",
"relative_path": "",
"encrypt_mode": "none",
"encrypt_data_access": false,
"created_at": "2021-03-18T04:55:06.893Z",
"permission": null,
"subdomain_id": ""
}
```
#### 指定 drive
POST: `https://api.aliyundrive.com/v2/drive/get`
```json
{ "drive_id": "9600002" }
```
Response:
```json
{
"domain_id": "bj29",
"drive_id": "9600002",
"drive_name": "alibum",
"description": "",
"creator": "",
"owner": "ccff000000004d75b5788a481eed8386",
"owner_type": "user",
"drive_type": "normal",
"status": "enabled",
"used_size": 742962124,
"total_size": 17536351469568,
"store_id": "b5e90000000041d084733b520ea8b57d",
"relative_path": "",
"encrypt_mode": "none",
"encrypt_data_access": false,
"created_at": "2021-03-29T04:02:57.981Z",
"permission": null,
"subdomain_id": ""
}
```
================================================
FILE: adrive sdk/file.md
================================================
#### 一个文件的信息
POST: `https://api.aliyundrive.com/v2/file/get`
```json
{
"drive_id": "9600002",
"office_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg",
"image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"video_thumbnail_process": "video/snapshot,t_0,f_jpg,m_lfit,w_256,ar_auto,m_fast",
"permanently": false,
"image_url_process": "image/resize,m_lfit,w_1080/format,webp",
"url_expire_sec": 1800
}
```
Response:
```json
{
"drive_id": "9600002",
"domain_id": "bj29",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"name": "父文件夹23",
"type": "folder",
"created_at": "2021-11-05T12:23:02.914Z",
"updated_at": "2022-01-24T10:53:36.469Z",
"hidden": false,
"starred": false,
"status": "available",
"user_meta": "{\"shares\":[\"2eVphedN4QT\"],\"client\":\"web\"}",
"parent_file_id": "root",
"encrypt_mode": "none",
"creator_type": "User",
"creator_id": "9400000000bc480bbcbbb1e074f55a7f",
"last_modifier_type": "User",
"last_modifier_id": "9400000000bc480bbcbbb1e074f55a7f",
"revision_id": "",
"ex_fields_info": { "image_count": 0 },
"trashed": false
}
```
#### 一个文件的信息 get_by_path
POST: `https://api.aliyundrive.com/v2/file/get_by_path`
```json
{ "drive_id": "9600002", "file_path": "/zip23" }
```
Response:
```json
{
"drive_id": "9600002",
"domain_id": "bj29",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"name": "zip23",
"type": "folder",
"created_at": "2021-08-28T02:54:02.561Z",
"updated_at": "2022-01-24T10:53:36.474Z",
"hidden": false,
"starred": false,
"status": "available",
"user_meta": "{\"shares\":[\"mUo000000ka\"]}",
"parent_file_id": "root",
"encrypt_mode": "none",
"last_modifier_type": "User",
"last_modifier_id": "9400000000bc480bbcbbb1e074f55a7f",
"revision_id": "",
"trashed": false
}
```
#### 一个文件的路径(root[不含] -> file_id 本身)
POST: `https://api.aliyundrive.com/adrive/v1/file/get_path`
```json
{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
Response:
```json
{
"items": [
{
"trashed": false,
"created_at": "2021-11-06T02:51:06.833Z",
"domain_id": "bj29",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"name": "donghua",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"starred": false,
"status": "available",
"type": "folder",
"updated_at": "2021-11-06T02:51:06.833Z",
"user_meta": "{\"client\":\"web\"}",
"ex_fields_info": { "image_count": 0 }
},
{
"trashed": false,
"created_at": "2021-11-05T12:23:02.914Z",
"domain_id": "bj29",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"name": "父文件夹23",
"parent_file_id": "root",
"starred": false,
"status": "available",
"type": "folder",
"updated_at": "2022-01-24T10:53:36.469Z",
"user_meta": "{\"shares\":[\"mUo000000ka\"],\"client\":\"web\"}",
"ex_fields_info": { "image_count": 0 }
}
]
}
```
#### 直接下载
GET: `https://api.aliyundrive.com/v2/file/download?drive_id=9600002&file_id=623b00000000d89ef21d4118838aed83de7575ba&image_thumbnail_process=image%2Fresize%2Cm_lfit%2Cw_256%2Climit_0%2Fformat%2Cjpg%7Cimage%2Fformat%2Cwebp`
```json
```
Response:
```text
Moved Permanently.
```
#### 单个下载地址
GET: `https://api.aliyundrive.com/v2/file/get_download_url`
```json
{ "drive_id": "9600002", "expires_sec": 0, "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
Response:
```json
{
"method": "GET",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"internal_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"expiration": "2022-03-22T14:54:28.057Z",
"size": 13,
"ratelimit": { "part_speed": -1, "part_size": -1 },
"crc64_hash": "1548000000008183211",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1"
}
```
#### 打包下载(失效)
GET: `https://api.aliyundrive.com/adrive/v1/file/multiDownloadUrl`
```json
{ "archive_name": "archive_name", "download_infos": [{ "drive_id": "9600002", "files": [{ "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }] }] }
```
Response:
```json
{ "download_url": "https://file.aliyundrive.com/files/archive?task_id=c3f2cd02-0000-0000-8c5a-e80fb1e6f35d&uid=ccff000000004d74b5788a481eed8386" }
```
#### 预览地址(Office)
POST: `https://api.aliyundrive.com/v2/file/get_office_preview_url`
```json
{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
Response:
```json
{ "preview_url": "https://office-cn-beijing.imm.aliyuncs.com/office/w/623b00000000d89ef21d4118838aed83de7575ba?_w_tokentype=1&hidecmb=1&simple=1", "access_token": "9eedf665d2464dfcbcabcef640211f0av3" }
```
#### 预览地址(OfficeEdit)
POST: `https://api.aliyundrive.com/v2/file/get_office_edit_url`
```json
{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "option": { "readonly": false } }
```
Response:
```json
{
"edit_url": "https://office-cn-beijing.imm.aliyuncs.com/office/p/623b00000000d89ef21d4118838aed83de7575ba?_w_tokentype=1",
"office_access_token": "75d3976f75a44e4980439ae8ac58ccf1v3",
"office_refresh_token": "ca61bb7e51394b62924a09552de868e3v3"
}
```
#### 预览地址(Video)
POST: `https://api.aliyundrive.com/v2/file/get_video_preview_play_info`
```json
{ "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "template_id": "", "url_expire_sec": 3600, "get_subtitle_info": true, "category": "live_transcoding", "drive_id": "9600002" }
```
Response:
```json
{
"domain_id": "bj29",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"video_preview_play_info": {
"category": "live_transcoding",
"meta": { "duration": 6728.747, "width": 3840, "height": 2160, "live_transcoding_meta": { "ts_segment": 10, "ts_total_count": 673, "ts_pre_count": 3 } },
"live_transcoding_task_list": [
{
"template_id": "SD",
"template_name": "pdsSD",
"status": "finished",
"stage": "stage_all",
"url": "https://ccp-bj29-video-preview.oss-cn-beijing.aliyuncs.com/lt/E85700000000F9AF45055D714AF43EE744E7262F_51495704429__sha1_bj29/SD/media.m3u8?di=bj29&dr=9600002&f=623b00000000d89ef21d4118838aed83de7575ba&u=9400000000bc480bbcbbb1e074f55a7f&x-oss-access-key-id=LTAIsE5mAn2F493Q&x-oss-expires=1648039409&x-oss-process=hls%2Fsign&x-oss-signature=qBAS4aI%2F3hT7TFv2mAlgeigtDNtoEK2Vk3BHkCYMXUI%3D&x-oss-signature-version=OSS2"
},
{
"template_id": "HD",
"template_name": "pdsHD",
"status": "finished",
"stage": "stage_all",
"url": "https://ccp-bj29-video-preview.oss-cn-beijing.aliyuncs.com/lt/E85700000000F9AF45055D714AF43EE744E7262F_51495704429__sha1_bj29/HD/media.m3u8?di=bj29&dr=9600002&f=623b00000000d89ef21d4118838aed83de7575ba&u=9400000000bc480bbcbbb1e074f55a7f&x-oss-access-key-id=LTAIsE5mAn2F493Q&x-oss-expires=1648039409&x-oss-process=hls%2Fsign&x-oss-signature=xv2x1WcvwqHpadUysuVyG%2FqsC4SGemy8kuXTUQ6G8qA%3D&x-oss-signature-version=OSS2"
},
{
"template_id": "FHD",
"template_name": "pdsFHD",
"status": "finished",
"stage": "stage_all",
"url": "https://ccp-bj29-video-preview.oss-cn-beijing.aliyuncs.com/lt/E85700000000F9AF45055D714AF43EE744E7262F_51495704429__sha1_bj29/FHD/media.m3u8?di=bj29&dr=9600002&f=623b00000000d89ef21d4118838aed83de7575ba&u=9400000000bc480bbcbbb1e074f55a7f&x-oss-access-key-id=LTAIsE5mAn2F493Q&x-oss-expires=1648039409&x-oss-process=hls%2Fsign&x-oss-signature=EK6lF3iznE9mW7PHfAQDT5vUZfQRV99aQ%2BS06Ir5P9I%3D&x-oss-signature-version=OSS2"
}
],
"live_transcoding_subtitle_task_list": [
{
"language": "chi",
"status": "finished",
"url": "https://ccp-bj29-video-preview.oss-cn-beijing.aliyuncs.com/lt/E85700000000F9AF45055D714AF43EE744E7262F_51495704429__sha1_bj29/subtitle/chi_0.vtt?di=bj29&dr=9600002&f=623b00000000d89ef21d4118838aed83de7575ba&u=9400000000bc480bbcbbb1e074f55a7f&x-oss-access-key-id=LTAIsE5mAn2F493Q&x-oss-expires=1648039409&x-oss-signature=%2Bywa3xJQWhSbqwhfj0namnSgH0Da5mYg%2F7cEU6hbsOI%3D&x-oss-signature-version=OSS2"
}
]
}
}
```
#### 预览地址(VideoUrl)
POST: `https://api.aliyundrive.com/v2/file/get_video_preview_url`
```json
{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "template_id": "HD", "url_expire_sec": 14400 }
```
Response:
```json
{
"preview_url": "https://ccp-bj29-video-preview.oss-cn-beijing.aliyuncs.com/bj29/sha1_1ADDEFFAB9820EDC1ECEAFA8F9D6511456A4053C_167238406_/HD/master.mp4?di=bj29&dr=9600002&f=623b00000000d89ef21d4118838aed83de7575ba&u=9400000000bc480bbcbbb1e074f55a7f&x-oss-access-key-id=LTAIsE5mAn2F493Q&x-oss-expires=1648018799&x-oss-signature=KZikIyRSw4c9WkYa2M3Mk4NQjAkdmmg60R6z3I2UJDY%3D&x-oss-signature-version=OSS2"
}
```
#### 预览地址(Audio)
POST: `https://api.aliyundrive.com/v2/databox/get_audio_play_info`
```json
{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
Response:
```json
{
"template_list": [
{
"template_id": "LQ",
"status": "finished",
"url": "https://ccp-bj29-video-preview.oss-cn-beijing.aliyuncs.com/bj29/sha1_4E2B9BBE6B93AE7DAAF932966EDF43CD307EC5A1_4030744_/LQ/master.mp3?di=bj29\u0026dr=9600002\u0026f=623b00000000d89ef21d4118838aed83de7575ba\u0026u=9400000000bc480bbcbbb1e074f55a7f\u0026x-oss-access-key-id=LTAIsE5mAn2F493Q\u0026x-oss-expires=1647960250\u0026x-oss-signature=S5pC%2BAje9NY4%2FYCYchj%2BC5LnsLZffAezK3%2F24CEjrvk%3D\u0026x-oss-signature-version=OSS2\u0026x-oss-traffic-limit=31457280"
}
]
}
```
#### 重命名
POST: `https://api.aliyundrive.com/v3/file/update`
```json
{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "name": "Screenshot_2021-11-23-09-34-20-248_com.tencet.mm.jpg", "check_name_mode": "refuse" }
```
Response:
```json
file
```
#### 移动
POST: `https://api.aliyundrive.com/v3/file/move`
```json
{ "auto_rename": false, "overwrite": false, "drive_id": "9600002", "to_drive_id": "9600002", "to_parent_file_id": "613800000000336ae9164455b135a9729a298c9c", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
Response:
```json
{ "domain_id": "bj29", "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
#### 复制
POST: `https://api.aliyundrive.com/v3/file/copy`
```json
{ "auto_rename": false, "drive_id": "9600002", "to_drive_id": "9600002", "to_parent_file_id": "root", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "new_name": "" }
```
Response:
```json
{ "domain_id": "bj29", "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
#### 列表 list
POST: `https://api.aliyundrive.com/v2/file/list`
```json
{
"fields": "*",
"drive_id": "9600002",
"office_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg",
"order_direction": "DESC",
"image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg",
"order_by": "name",
"limit": 50,
"video_thumbnail_process": "video/snapshot,t_0,f_jpg,m_lfit,w_256,ar_auto,m_fast",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"all": false,
"image_url_process": "image/resize,m_lfit,w_1080/format,webp"
}
```
Response:
```json
{
"items": [
{
"drive_id": "9600002",
"domain_id": "bj29",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"name": "试看版",
"type": "folder",
"created_at": "2021-11-06T03:15:19.060Z",
"updated_at": "2021-11-06T03:15:19.060Z",
"hidden": false,
"starred": false,
"status": "available",
"user_meta": "{\"client\":\"web\"}",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"encrypt_mode": "none",
"creator_type": "User",
"creator_id": "9400000000bc480bbcbbb1e074f55a7f",
"creator_name": "myname",
"last_modifier_type": "User",
"last_modifier_id": "9400000000bc480bbcbbb1e074f55a7f",
"last_modifier_name": "myname",
"revision_id": ""
},
{
"drive_id": "9600002",
"domain_id": "bj29",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"name": "压缩包.zip",
"type": "file",
"content_type": "application/oct-stream",
"created_at": "2021-11-06T03:31:13.518Z",
"updated_at": "2021-11-06T03:31:13.518Z",
"file_extension": "zip",
"mime_type": "application/zip",
"mime_extension": "zip",
"hidden": false,
"size": 604818808,
"starred": false,
"status": "available",
"user_meta": "{\"client\":\"web\"}",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"crc64_hash": "1548000000008183211",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"category": "zip",
"encrypt_mode": "none",
"punish_flag": 0,
"creator_type": "User",
"creator_id": "9400000000bc480bbcbbb1e074f55a7f",
"creator_name": "myname",
"last_modifier_type": "User",
"last_modifier_id": "9400000000bc480bbcbbb1e074f55a7f",
"last_modifier_name": "myname",
"revision_id": "6138000000000b81a8164550b1e7cba1d7fbe111"
},
{
"drive_id": "9600002",
"domain_id": "bj29",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"name": "夫知間.jpg",
"type": "file",
"content_type": "application/oct-stream",
"created_at": "2021-11-06T03:16:33.170Z",
"updated_at": "2021-11-06T03:16:33.390Z",
"file_extension": "jpg",
"mime_type": "image/jpeg",
"mime_extension": "jpg",
"hidden": false,
"size": 294767,
"starred": false,
"status": "available",
"user_meta": "{\"client\":\"web\"}",
"labels": ["其他事物", "艺术品"],
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"crc64_hash": "1548000000008183211",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"category": "image",
"encrypt_mode": "none",
"image_media_metadata": {
"width": 1627,
"height": 2310,
"exif": "{\"FileSize\":{\"value\":\"294767\"},\"Format\":{\"value\":\"jpg\"},\"ImageHeight\":{\"value\":\"2310\"},\"ImageWidth\":{\"value\":\"1627\"},\"ResolutionUnit\":{\"value\":\"2\"},\"XResolution\":{\"value\":\"300/1\"},\"YResolution\":{\"value\":\"300/1\"}}",
"image_quality": { "overall_score": 0.7194659113883972 }
},
"punish_flag": 2,
"last_modifier_type": "User",
"last_modifier_id": "9400000000bc480bbcbbb1e074f55a7f",
"last_modifier_name": "myname",
"revision_id": "6138000000000b81a8164550b1e7cba1d7fbe111"
},
{
"drive_id": "9600002",
"domain_id": "bj29",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"name": "麻冬.zip",
"type": "file",
"content_type": "application/oct-stream",
"created_at": "2021-11-06T03:16:58.189Z",
"updated_at": "2021-11-06T03:16:58.189Z",
"file_extension": "zip",
"mime_type": "application/zip",
"mime_extension": "zip",
"hidden": false,
"size": 575786476,
"starred": false,
"status": "available",
"user_meta": "{\"client\":\"web\"}",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"crc64_hash": "1548000000008183211",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"category": "zip",
"encrypt_mode": "none",
"punish_flag": 0,
"creator_type": "User",
"creator_id": "9400000000bc480bbcbbb1e074f55a7f",
"creator_name": "myname",
"last_modifier_type": "User",
"last_modifier_id": "9400000000bc480bbcbbb1e074f55a7f",
"last_modifier_name": "myname",
"revision_id": "6138000000000b81a8164550b1e7cba1d7fbe111"
}
],
"next_marker": "",
"punished_file_count": 0
}
```
#### 列表 walk
POST: `https://api.aliyundrive.com/v2/file/walk`
```json
{
"all": false,
"drive_id": "9600002",
"fields": "*",
"image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg|image/format,webp",
"image_url_process": "image/resize,m_lfit,w_1080/format,webp",
"limit": 1000,
"marker": "",
"office_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg|image/format,webp",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"video_thumbnail_process": "video/snapshot,t_120000,f_jpg,m_lfit,w_256,ar_auto,m_fast"
}
```
```json
{
"all": false,
"drive_id": "9600002",
"fields": "*",
"image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg|image/format,webp",
"image_url_process": "image/resize,m_lfit,w_1080/format,webp",
"limit": 800,
"marker": "",
"office_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg|image/format,webp",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"video_thumbnail_process": "video/snapshot,t_120000,f_jpg,m_lfit,w_256,ar_auto,m_fast",
"return_total_count": true,
"type": "folder"
}
```
Response:
```json
filelist
```
#### 列表(全量) scan
POST: `https://api.aliyundrive.com/v2/file/scan`
```json
{
"drive_id": "9600002",
"category": "image",
"limit": 1000
}
```
Response:
```json
filelist
```
#### 收藏列表
POST: `https://api.aliyundrive.com/v2/file/list_by_custom_index_key`
```json
{
"fields": "*",
"drive_id": "9600002",
"image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg",
"limit": 50,
"video_thumbnail_process": "video/snapshot,t_0,f_jpg,m_lfit,w_256,ar_auto,m_fast",
"parent_file_id": "root",
"all": false,
"image_url_process": "image/resize,m_lfit,w_1080/format,webp",
"custom_index_key": "starred_yes"
}
```
Response:
```json
filelist
```
#### 收藏文件
POST: `https://api.aliyundrive.com/v3/file/update`
```json
{ "hidden": false, "drive_id": "9600002", "starred": false, "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "custom_index_key": "" }
```
```json
{ "hidden": false, "drive_id": "9600002", "starred": true, "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "custom_index_key": "starred_yes" }
```
Response:
```json
file
```
#### 删除文件(从回收站彻底删除)
POST: `https://api.aliyundrive.com/v3/file/delete`
```json
{ "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "drive_id": "9600002" }
```
Response:
```text
HTTP/1.1 204 No Content
```
#### 增加文件 user_tags
POST: `https://api.aliyundrive.com/v2/file/put_usertags`
```json
{ "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "drive_id": "9600002", "user_tags": [{ "key": "k", "value": "0" }] }
```
Response:
```json
{ "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
#### 删除文件 user_tags
POST: `https://api.aliyundrive.com/v2/file/delete_usertags`
```json
{ "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "drive_id": "9600002", "key_list": ["k"] }
```
Response:
```text
HTTP/1.1 204 No Content
```
#### 未知 list_delta(向相册中上传文件时触发)
POST: `https://api.aliyundrive.com/v2/file/list_delta`
```json
{ "cursor": "MDAwMDAwMDA6MDAwNWRhYjNiYjQ2YTFkMzowMDAwMDAwMQ==", "drive_id": "9600002", "limit": 1000 }
```
Response:
```json
{
"items": [
{
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"op": "create",
"file": {
"drive_id": "9600002",
"domain_id": "bj29",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"name": "ic_acloud_launcher.png",
"type": "file",
"content_type": "image/png",
"created_at": "2022-03-22T04:28:47.498Z",
"updated_at": "2022-03-22T04:28:47.498Z",
"file_extension": "png",
"hidden": false,
"size": 6414,
"starred": false,
"status": "available",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"parent_file_id": "root",
"crc64_hash": "1548000000008183211",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"category": "image",
"encrypt_mode": "none",
"image_media_metadata": { "image_quality": {} },
"characteristic_hash": "e14f000000004eb4ae91b8a4a723c2a11361928f",
"revision_id": ""
},
"current_category": "image"
},
{
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"op": "update",
"file": {
"drive_id": "9600002",
"domain_id": "bj29",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"labels": ["其他事物", "蓝色"],
"category": "image",
"image_media_metadata": {
"width": 108,
"height": 108,
"image_quality": { "overall_score": 0.4490000009536743 }
},
"revision_id": ""
},
"current_category": "image"
}
],
"has_more": false,
"cursor": "MDAwMDAwMDA6MDAwNWRhYzcwYzk2ZTM4OTowMDAwMDAwMQ=="
}
```
================================================
FILE: adrive sdk/filedir.md
================================================
#### 文件夹大小
POST: `https://api.aliyundrive.com/adrive/v1/file/get_folder_size_info`
```json
{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
Response:
```json
{ "size": 67200, "folder_count": 0, "file_count": 600, "reach_limit": true }
```
#### 批量读取文件夹封面
POST: `https://api.aliyundrive.com/adrive/v1/file/cover/batchGet`
```json
{ "drive_id": "9600002", "file_ids": ["623b00000000d89ef21d4118838aed83de7575ba", "6061000000001af7c3034e3590ea7d5a50f58015"] }
```
Response:
```json
{
"items": [
{
"folder_file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"cover_file_id": "6061000000001af7c3034e3590ea7d5a50f58015",
"cover_file_thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/RV5OBihM%2F...",
"cover_file_name": "反贪5.mp4",
"cover_file_category": "video"
},
{ "folder_file_id": "623b00000000d89ef21d4118838aed83de7575ba", "cover_file_id": "6061000000001af7c3034e3590ea7d5a50f58015", "cover_file_name": "bbbc", "cover_file_category": "others" }
]
}
```
#### 读取文件夹封面
POST: `https://api.aliyundrive.com/adrive/v1/file/cover/get`
```json
{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
Response:
```json
{
"folder_file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"cover_file_id": "6061000000001af7c3034e3590ea7d5a50f58015",
"cover_file_thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/RV5OBihM%2F...",
"cover_file_name": "firmware.3911(1).dat",
"cover_file_category": "video"
}
```
#### 设置-读取开启文件夹封面
POST: `https://api.aliyundrive.com/adrive/v1/file/cover/config/get`
```json
{}
```
Response:
```json
{"enable":true}
```
#### 设置-保存开启文件夹封面
POST: `https://api.aliyundrive.com/adrive/v1/file/cover/config/set`
```json
{"enable":true}
```
Response:
```text
HTTP/1.1 200 OK
```
================================================
FILE: adrive sdk/fileupload.md
================================================
#### 上传文件 pre_hash
POST: `https://api.aliyundrive.com/v2/file/create_with_proof`
```json
{
"auto_rename": true,
"content_type": "application/octet-stream",
"drive_id": "9600002",
"hidden": false,
"name": "Version 89",
"parent_file_id": "root",
"part_info_list": [{ "part_number": 1, "part_size": 4094816 }],
"pre_hash": "BF9800000000645AAAE912D616759A7C96CC8BFA",
"size": 4094816,
"type": "file"
}
```
Response:
```json
{ "parent_file_id": "", "file_name": "Version 89", "pre_hash": "BF9800000000645AAAE912D616759A7C96CC8BFA", "code": "PreHashMatched", "message": "Pre hash matched." }
```
#### 上传文件
POST: `https://api.aliyundrive.com/v2/file/create_with_proof`
```json
{
"auto_rename": true,
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/octet-stream",
"drive_id": "9600002",
"hidden": false,
"name": "Version 89",
"parent_file_id": "root",
"part_info_list": [{ "part_number": 1, "part_size": 4094816 }],
"proof_code": "h49KOtR0okk=",
"proof_version": "v1",
"size": 4094816,
"type": "file"
}
```
Response:
```json
//秒传了
{
"parent_file_id": "root",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"rapid_upload": true,
"type": "file",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"domain_id": "bj29",
"drive_id": "9600002",
"file_name": "Version 89",
"encrypt_mode": "none",
"location": "cn-beijing"
}
```
```json
//正常上传
{
"parent_file_id": "root",
"part_info_list": [
{
"part_number": 1,
"part_size": 950,
"upload_url": "https://bj29.cn-beijing.data.alicloudccp.com/AfD0AB6n%2F9600002%2F623b00000000d89ef21d4118838aed83de7575ba%2F623b000000006480042148a5bb586d3c2f053ec8?partNumber=1&uploadId=1382108D9D2C4182B2D4B9AEBB53E2E4&x-oss-access-key-id=LTAIsE5mAn2F493Q&x-oss-expires=1648043319&x-oss-signature=rIWzJDDihQwWO%2FoAxPPjQV2Y0%2F8FXH3h7rd01w%2Biin8%3D&x-oss-signature-version=OSS2",
"internal_upload_url": "http://ccp-bj29-bj-1592982087.oss-cn-beijing-internal.aliyuncs.com/AfD0AB6n%2F9600002%2F623b00000000d89ef21d4118838aed83de7575ba%2F623b000000006480042148a5bb586d3c2f053ec8?partNumber=1&uploadId=1382108D9D2C4182B2D4B9AEBB53E2E4&x-oss-access-key-id=LTAIsE5mAn2F493Q&x-oss-expires=1648043319&x-oss-signature=rIWzJDDihQwWO%2FoAxPPjQV2Y0%2F8FXH3h7rd01w%2Biin8%3D&x-oss-signature-version=OSS2",
"content_type": ""
}
],
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"rapid_upload": false,
"type": "file",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"domain_id": "bj29",
"drive_id": "9600002",
"file_name": "FiddlerRoot.crt",
"encrypt_mode": "none",
"location": "cn-beijing"
}
```
//循环上传分片数据
PUT `https://bj29.cn-beijing.data.alicloudccp.com/AfD0AB6n%2F9600002%2F623b00000000d89ef21d4118838aed83de7575ba%2F623b000000006480042148a5bb586d3c2f053ec8?partNumber=1&uploadId=1382108D9D2C4182B2D4B9AEBB53E2E4&x-oss-access-key-id=LTAIsE5mAn2F493Q&x-oss-expires=1648043319&x-oss-signature=rIWzJDDihQwWO%2FoAxPPjQV2Y0%2F8FXH3h7rd01w%2Biin8%3D&x-oss-signature-version=OSS2`
#### 合并分片
POST: `https://api.aliyundrive.com/v2/file/complete`
```json
{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "upload_id": "ED12000000004724833D47B5D5D3C8B9" }
```
Response:
```json
{
"drive_id": "9600002",
"domain_id": "bj29",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"name": "FiddlerRoot.crt",
"type": "file",
"content_type": "application/x-x509-ca-cert",
"created_at": "2022-03-23T12:48:39.888Z",
"updated_at": "2022-03-23T12:48:40.449Z",
"file_extension": "crt",
"hidden": false,
"size": 950,
"starred": false,
"status": "available",
"user_meta": "{\"client\":\"Android\"}",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"parent_file_id": "root",
"crc64_hash": "1548000000008183211",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"category": "others",
"encrypt_mode": "none",
"creator_type": "User",
"creator_id": "9400000000bc480bbcbbb1e074f55a7f",
"last_modifier_type": "User",
"last_modifier_id": "9400000000bc480bbcbbb1e074f55a7f",
"revision_id": "6138000000000b81a8164550b1e7cba1d7fbe111",
"location": "cn-beijing"
}
```
================================================
FILE: adrive sdk/image.md
================================================
#### 探索-人物列表
POST: `https://api.aliyundrive.com/v2/image/list_facegroups`
```json
{ "drive_id": "9600002", "limit": 100 }
```
Response:
```json
{
"items": [
{
"group_id": "Group-00000000-1703-4fc0-bf56-369478ed14df",
"group_name": " ",
"image_count": 15,
"created_at": "2021-09-08T21:46:02.413048705+08:00",
"updated_at": "2021-11-08T13:58:11.452257679+08:00",
"group_cover_url": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/nIaV4oIe%2F...",
"group_cover_file_id": "613800000000c99442f44b99b93b3bdd40e21836",
"group_cover_face_boundary": { "Width": 445, "Height": 532, "Top": 328, "Left": 650 }
}
],
"next_marker": ""
}
```
#### 探索-人物照片列表
POST: `https://api.aliyundrive.com/v2/file/search`
```json
{
"drive_id": "9600002",
"limit": 100,
"order_by": "created_at DESC",
"query": "type = 'file' and category in ['image', 'video'] and face_group_id = 'Group-00000000-1703-4fc0-bf56-369478ed14df' and status = 'available' and hidden = false",
"return_total_count": true
}
```
Response:
```json
{
"items": [
{
"drive_id": "9600002",
"domain_id": "bj29",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"name": "43.jpg",
"type": "file",
"content_type": "application/oct-stream",
"created_at": "2021-09-08T13:46:00.764Z",
"updated_at": "2021-09-08T13:46:02.889Z",
"file_extension": "jpg",
"mime_type": "image/jpeg",
"mime_extension": "jpg",
"hidden": false,
"size": 2178603,
"starred": false,
"status": "available",
"labels": ["日常行为", "职业&角色"],
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"crc64_hash": "1548000000008183211",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"category": "image",
"encrypt_mode": "none",
"image_media_metadata": {
"width": 2400,
"height": 3600,
"faces": "[{\"FaceConfidence\":0.9466279149055481,\"EmotionConfidence\":0.9990111589431763,\"ImageUri\":\"\",\"FaceQuality\":0.7725782990455627,\"Similarity\":0,\"ExternalId\":\"\",\"Attractive\":0.93,\"AttractiveConfidence\":0,\"Age\":23,\"AgeConfidence\":0,\"Gender\":\"FEMALE\",\"Emotion\":\"HAPPY\",\"GenderConfidence\":1,\"FaceId\":\"45f700000000ac19ffbf56adcaa98e3944f28c087cd36b9bc1acde5ae5829fa3\",\"GroupId\":\"Group-00000000-1703-4fc0-bf56-369478ed14df\",\"FaceAttributes\":{\"Glasses\":\"NONE\",\"MaskConfidence\":1,\"Mask\":\"NONE\",\"GlassesConfidence\":1,\"Beard\":\"NONE\",\"BeardConfidence\":1,\"FaceBoundary\":{\"Width\":445,\"Height\":532,\"Top\":328,\"Left\":650},\"HeadPose\":{\"Pitch\":18.937170028686523,\"Roll\":30.32413101196289,\"Yaw\":9.59316635131836}},\"EmotionDetails\":{\"SURPRISED\":0.0000041519870137562975,\"HAPPY\":0.9990111589431763,\"ANGRY\":0.0000027373464490665356,\"DISGUSTED\":0.000007709058991167694,\"SAD\":0.0001263682497665286,\"CALM\":0.0008296924061141908,\"SCARED\":0.0000020987527022953145},\"SimilarFaces\":null}]",
"faces_thumbnail": [
{
"face_id": "45f700000000ac19ffbf56adcaa98e3944f28c087cd36b9bc1acde5ae5829fa3",
"face_group_id": "Group-00000000-1703-4fc0-bf56-369478ed14df",
"face_thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F..."
}
],
"image_quality": { "overall_score": 0.6911791563034058 }
},
"punish_flag": 2,
"revision_id": "6138000000000b81a8164550b1e7cba1d7fbe111"
}
],
"next_marker": "",
"total_count": 15
}
```
#### 探索-从人物的照片中移除一张
POST: `https://api.aliyundrive.com/v2/albums/unassign_facegroup_item`
```json
{ "face_group_id": "Group-00000000-1703-4fc0-bf56-369478ed14df", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "drive_id": "9600002" }
```
Response:
```text
HTTP/1.1 204 No Content
```
#### 探索-修改人物 name,头像,remarks
POST: `https://api.aliyundrive.com/v2/image/update_facegroup_info`
```json
{ "drive_id": "9600002", "group_cover_face_id": "45f700000000ac19ffbf56adcaa98e3944f28c087cd36b9bc1acde5ae5829fa3", "group_id": "Group-00000000-1703-4fc0-bf56-369478ed14df", "group_name": "fang", "remarks": "-" }
```
Response:
```json
{ "drive_id": "9600002", "group_id": "Group-00000000-1703-4fc0-bf56-369478ed14df" }
```
#### 探索-地点列表
POST: `https://api.aliyundrive.com/v2/image/list_address_groups`
```json
{ "all": false, "image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg", "video_thumbnail_process": "video/snapshot,t_7000,f_jpg,w_800,h_600,ar_auto,m_fast", "drive_id": "9600002" }
```
Response:
```json
{ "items": [], "next_marker": "" }
```
#### 探索-地点列表
POST: `https://api.aliyundrive.com/v2/image/list_address_groups`
```json
{ "drive_id": "9600002", "address_names": ["杭州市", "北京市"] }
```
Response:
```json
{ "items": [] }
```
#### 探索-标记列表
POST: `https://api.aliyundrive.com/v2/image/list_tags`
```json
{ "all": false, "image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg", "video_thumbnail_process": "video/snapshot,t_7000,f_jpg,w_800,h_600,ar_auto,m_fast", "drive_id": "9600002" }
```
Response:
```json
{
"tags": [
{
"name": "摄影",
"count": 75,
"cover_url": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/ew5HgHNJ%2F...",
"cover_file_id": "6061000000001af7c3034e3590ea7d5a50f58015",
"cover_file_category": "",
"cover_tag_confidence": 1,
"cover_overall_score": 0.7421030402183533
}
]
}
```
#### drive 内图片总数
POST: `https://api.aliyundrive.com/v2/image/get_photo_count`
```json
{ "drive_id": "9600002" }
```
Response:
```json
{ "image_count": 126 }
```
================================================
FILE: adrive sdk/member.md
================================================
#### 列出已订阅
POST: `https://api.aliyundrive.com/adrive/v1/member/list_following`
```json
{ "limit": 50, "order_by": "updated_at", "order_direction": "DESC" }
```
Response:
```json
{
"items": [
{
"description": "中国国家地理景观官方账号,带你领略目酣神醉的壮美景观、发现中国各地独具特色的人文胜迹。",
"avatar": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/2GhCur3G%2F...",
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"nick_name": "中国国家地理景观",
"phone": "136***902",
"is_following": true,
"has_unread_message": true,
"latest_messages": [
{
"creator": {
"description": "中国国家地理景观官方账号,带你领略目酣神醉的壮美景观、发现中国各地独具特色的人文胜迹。",
"avatar": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/2GhCur3G%2F...",
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"nick_name": "中国国家地理景观",
"phone": "136***902"
},
"action": "sharelink.create",
"content": {
"share": {
"popularity": 6019,
"share_id": "6RRP4gDWwzE",
"share_msg": "「广东100个最美观景拍摄点-...拍摄季节:四季).jpg」,点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。",
"share_name": "广东100个最美观景拍摄点-...拍摄季节:四季).jpg",
"description": "",
"expiration": "",
"expired": false,
"share_pwd": "",
"share_url": "https://www.aliyundrive.com/s/6RRP4gDWwzE",
"creator": "01d1ea604d644cfb83ac7e9be530db8e",
"drive_id": "347756450",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"file_id_list": ["6228000000002c31be704ca28671f09712894f4f"],
"preview_count": 2139,
"save_count": 802,
"download_count": 27,
"status": "enabled",
"created_at": "2022-03-20T13:55:42.630Z",
"updated_at": "2022-03-21T08:04:11.464Z",
"first_file": {
"trashed": false,
"category": "image",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2022-02-28T09:09:54.329Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "347756450",
"encrypt_mode": "none",
"file_extension": "jpg",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"image_media_metadata": {
"height": 1464,
"image_quality": { "overall_score": 0.6488162279129028 },
"width": 2500
},
"labels": ["旅游&地理", "体育运动", "植物", "徒步", "自然景观", "植被", "高地", "山脊", "山峰", "丘陵", "山", "云", "山中避暑地", "山脉", "雾", "天空", "荒野", "雾景", "森林"],
"mime_type": "image/jpeg",
"name": "广东100个最美观景拍摄点-油岭瑶寨(最佳拍摄季节:四季).jpg",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"punish_flag": 0,
"size": 3829229,
"starred": false,
"status": "available",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"type": "file",
"updated_at": "2022-02-28T09:09:57.283Z",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"user_meta": "{\"client\":\"desktop\"}"
},
"allow_subscribe": false,
"current_sync_status": 3,
"popularity_str": "6K",
"popularity_emoji": "\uD83D\uDD25",
"full_share_msg": "「广东100个最美观景拍摄点-...拍摄季节:四季).jpg」https://www.aliyundrive.com/s/6RRP4gDWwzE\n点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。",
"display_name": "广东100个最美观景拍摄点-油岭瑶寨(最佳拍摄季节:四季).jpg"
},
"share_id": "6RRP4gDWwzE",
"drive_id": "347756450",
"file_id_list": ["6228000000002c31be704ca28671f09712894f4f"],
"file_list": [
{
"category": "image",
"created_at": "2022-02-28T09:09:54.329Z",
"domain_id": "bj29",
"drive_id": "347756450",
"file_extension": "jpg",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"image_media_metadata": { "height": 1464, "width": 2500 },
"mime_type": "image/jpeg",
"name": "广东100个最美观景拍摄点-油岭瑶寨(最佳拍摄季节:四季).jpg",
"parent_file_id": "root",
"punish_flag": 0,
"share_id": "6RRP4gDWwzE",
"size": 3829229,
"thumbnail": "https://pdsapi.aliyundrive.com/v2/redirect?id=5c2b8c638c27409f8516c5fce2c320bc",
"type": "file",
"updated_at": "2022-02-28T09:09:57.283Z"
}
]
},
"created": 1647784542657,
"creator_id": "01d1ea604d644cfb83ac7e9be530db8e",
"sequence_id": 1647784542661000,
"display_action": "分享了 广东100个最美观景拍摄点-油岭瑶寨(最佳拍摄季节:四季).jpg"
}
]
}
],
"total_count": 2
}
```
#### 标记已读(订阅的一个用户有动态)
POST: `https://api.aliyundrive.com/adrive/v1/member/mark_read`
```json
{ "user_id": "9400000000bc480bbcbbb1e074f55a7f" }
```
Response:
```json
{}
```
#### 取消订阅
POST: `https://api.aliyundrive.com/adrive/v1/member/unfollow_user`
```json
{ "user_id": "9400000000bc480bbcbbb1e074f55a7f" }
```
Response:
```json
{}
```
#### 增加订阅
POST: `https://api.aliyundrive.com/adrive/v1/member/follow_user`
```json
{ "user_id": "9400000000bc480bbcbbb1e074f55a7f" }
```
Response:
```json
{}
```
================================================
FILE: adrive sdk/note.md
================================================
#### 笔记-drive_id
POST: `https://api.aliyundrive.com/anote/v1/drive/info`
```json
```
Response:
```json
{ "user_id": "9400000000bc480bbcbbb1e074f55a7f", "drive_id": "9600002" }
```
#### 笔记列表
POST: `https://api.aliyundrive.com/anote/v1/note/list`
```json
{ "order_direction": "desc", "order_by": 2, "media_category_list": ["image"], "limit": 100, "status": 0 }
```
Response:
```json
{
"result": [
{
"status": 0,
"top": 0,
"title": "高三总复习CETV.mp4",
"summary": " 回顾改革\n三生俄文\n",
"media": "[]",
"type": "common",
"value": null,
"version": null,
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"doc_id": "feb400000000a0a7f69588aeed0567c8e5c31d1d",
"drive_id": "9600002",
"created_at": 1647859789126,
"updated_at": 1647860036653,
"media_list": []
},
{
"status": 0,
"top": 0,
"title": "iyvxb",
"summary": "",
"media": "[]",
"type": "common",
"value": null,
"version": null,
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"doc_id": "feb400000000a0a7f69588aeed0567c8e5c31d1d",
"drive_id": "9600002",
"created_at": 1635075204623,
"updated_at": 1635075211182,
"media_list": []
},
{
"status": 0,
"top": 0,
"title": "ggg",
"summary": "ggc\n",
"media": "[]",
"type": "common",
"value": null,
"version": null,
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"doc_id": "feb400000000a0a7f69588aeed0567c8e5c31d1d",
"drive_id": "9600002",
"created_at": 1635074956002,
"updated_at": 1635074983777,
"media_list": []
},
{
"status": 0,
"top": 0,
"title": "欢迎使用笔记",
"summary": "阿里云盘「笔记」是你在数字生活中的又一个伙伴,帮助你随时记录生活、学习、工作中的各种重要信息。你的每一次起心动念,都会留下属于自己的思想痕迹。抓住它们、记录它们,它们会是你在数字世界中重要的资产。 · 笔记能做什么?\n · 阿里云盘「笔记」将有两大核心能力:\n · 1. 在云盘中跨云服务记录想法 · 1. 管理信息、知识 · \uD83D\uDC47下面我们简单为大家介绍一下笔记的具体功能:\n · 灵活强大的编辑器\n",
"media": "[]",
"type": "common",
"value": null,
"version": null,
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"doc_id": "feb400000000a0a7f69588aeed0567c8e5c31d1d",
"drive_id": "9600002",
"created_at": 1635074953183,
"updated_at": 1635074953183,
"media_list": [
{ "fileId": "61754388dab29ac982464de485c38a5f67d07bc1", "driveId": "9600002", "resourceType": null, "dataPreviewUrl": null, "dataSrc": null, "dataAppId": null, "dataObjectId": null, "dataCategory": null },
{ "fileId": "61754389b1a68525c17d4235af597722dbd32370", "driveId": "9600002", "resourceType": null, "dataPreviewUrl": null, "dataSrc": null, "dataAppId": null, "dataObjectId": null, "dataCategory": null },
{ "fileId": "61754389ead68e4cce6b4499b5512585d94a011b", "driveId": "9600002", "resourceType": null, "dataPreviewUrl": null, "dataSrc": null, "dataAppId": null, "dataObjectId": null, "dataCategory": null }
]
}
],
"marker": "",
"total_count": 4
}
```
#### 一个笔记的简介
POST: `https://api.aliyundrive.com/anote/v1/note/getNote`
```json
{ "exclude_fields": ["value"], "doc_id": "feb400000000a0a7f69588aeed0567c8e5c31d1d" }
```
Response:
```json
{
"status": 0,
"top": 0,
"title": "欢迎使用笔记",
"summary": "阿里云盘「笔记」是你在数字生活中的又一个伙伴,帮助你随时记录生活、学习、工作中的各种重要信息。你的每一次起心动念,都会留下属于自己的思想痕迹。抓住它们、记录它们,它们会是你在数字世界中重要的资产。 · 笔记能做什么?\n · 阿里云盘「笔记」将有两大核心能力:\n · 1. 在云盘中跨云服务记录想法 · 1. 管理信息、知识 · \uD83D\uDC47下面我们简单为大家介绍一下笔记的具体功能:\n · 灵活强大的编辑器\n",
"media": "[]",
"type": "common",
"value": null,
"version": 1,
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"doc_id": "feb400000000a0a7f69588aeed0567c8e5c31d1d",
"drive_id": "9600002",
"created_at": 1635074953183,
"updated_at": 1635074953183,
"media_list": [
{
"fileId": null,
"driveId": null,
"resourceType": null,
"dataPreviewUrl": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"dataSrc": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"dataAppId": "anote",
"dataObjectId": "9600002_61754389ead68e4cce6b4499b5512585d94a011b",
"dataCategory": "image"
}
]
}
```
#### 一个笔记的完整内容
POST: `https://api.aliyundrive.com/anote/v1/note/getNote`
```json
{ "doc_id": "feb400000000a0a7f69588aeed0567c8e5c31d1d" }
```
Response:
```json
{
"status": 0,
"top": 0,
"title": "欢迎使用笔记",
"summary": "阿里云盘「笔记」是你在数字生活中的又一个伙伴,帮助你随时记录生活、学习、工作中的各种重要信息。你的每一次起心动念,都会留下属于自己的思想痕迹。抓住它们、记录它们,它们会是你在数字世界中重要的资产。 · 笔记能做什么?\n · 阿里云盘「笔记」将有两大核心能力:\n · 1. 在云盘中跨云服务记录想法 · 1. 管理信息、知识 · \uD83D\uDC47下面我们简单为大家介绍一下笔记的具体功能:\n · 灵活强大的编辑器\n",
"media": "[]",
"type": "common",
"value": [
"root",
{},
[
"p",
{},
[
"span",
{ "data-type": "text" },
[
"span",
{ "data-type": "leaf" },
"阿里云盘「笔记」是你在数字生活中的又一个伙伴,帮助你随时记录生活、学习、工作中的各种重要信息。你的每一次起心动念,都会留下属于自己的思想痕迹。抓住它们、记录它们,它们会是你在数字世界中重要的资产。"
]
]
],
[
"h2",
{ "spacing": { "before": 14.666666666666668, "after": 14.666666666666668, "line": 0.8529411764705882 } },
["span", { "data-type": "text" }, ["span", { "bold": true, "sz": 16, "szUnit": "pt", "data-type": "leaf" }, "笔记能做什么?\n"]]
],
["p", { "ind": { "left": 0 } }, ["span", { "data-type": "text" }, ["span", { "data-type": "leaf" }, "阿里云盘「笔记」将有两大核心能力:\n"]]],
[
"p",
{
"ind": { "left": 0 },
"list": { "listId": "kak98pl4pzh", "level": 0, "isOrdered": true, "isTaskList": false, "listStyleType": "DEC_LEN_LROM_P", "symbolStyle": {}, "listStyle": { "format": "decimal", "text": "%1.", "align": "left" }, "hideSymbol": false }
},
["span", { "data-type": "text" }, ["span", { "data-type": "leaf" }, "在云盘中跨"], ["span", { "bold": true, "data-type": "leaf" }, "云服务"], ["span", { "data-type": "leaf" }, "记录想法"]]
],
[
"p",
{},
["span", { "data-type": "text" }, ["span", { "data-type": "leaf" }, ""]],
[
"object",
{
"dataCategory": "image",
"dataId": "0079012b-d4c9-43b0-ad46-a394ef944aa4",
"dataAppId": "anote",
"dataObjectId": "9600002_61754388dab29ac982464de485c38a5f67d07bc1",
"dataResourceType": "file",
"dataMetadata": { "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" },
"aslMetadata": {},
"dataPreviewUrl": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"dataSrc": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F..."
},
["span", { "data-type": "text" }, ["span", { "data-type": "leaf" }, ""]]
],
["span", { "data-type": "text" }, ["span", { "data-type": "leaf" }, "\n"]]
]
],
"version": 1,
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"doc_id": "feb400000000a0a7f69588aeed0567c8e5c31d1d",
"drive_id": "9600002",
"created_at": 1635074953183,
"updated_at": 1635074953183,
"media_list": [
{
"fileId": null,
"driveId": null,
"resourceType": null,
"dataPreviewUrl": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"dataSrc": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"dataAppId": "anote",
"dataObjectId": "9600002_61754389b1a68525c17d4235af597722dbd32370",
"dataCategory": "image"
}
]
}
```
#### 更新一个笔记标题
POST: `https://api.aliyundrive.com/anote/v1/note/updateTitle`
```json
{ "doc_id": "feb400000000a0a7f69588aeed0567c8e5c31d1d", "title": "我" }
```
Response:
```text
HTTP/1.1 200 OK
```
#### 更新一个笔记内容
POST: `https://api.aliyundrive.com/anote/v1/note/patch`
```json
{
"ops": [
{ "op": "add", "path": "/5", "value": ["p", {}, ["span", { "data-type": "text" }, ["span", { "data-type": "leaf" }, "三生俄文将和 v 将祸福倚伏具有肌肤光滑"]]] },
{ "op": "remove", "path": "/6" }
],
"doc_id": "feb400000000a0a7f69588aeed0567c8e5c31d1d",
"version": 7,
"summary": " 回顾改革\n三生俄文将和 v 将祸福倚伏具有肌肤光滑\n"
}
```
Response:
```json
{ "docId": "feb400000000a0a7f69588aeed0567c8e5c31d1d", "version": 8 }
```
https://www.aliyundrive.com/static/note-mobile-editor?docId=feb4c7c1f55fa0a7f69588aeed0567c8e5c31d1d
#### 置顶一个笔记
POST: `https://api.aliyundrive.com/anote/v1/note/batchUpdate`
```json
{ "doc_ids": ["feb400000000a0a7f69588aeed0567c8e5c31d1d"], "operation": 1 }
```
Response:
```json
{ "result": [] }
```
#### 删除一个笔记
POST: `https://api.aliyundrive.com/anote/v1/note/batchUpdate`
```json
{ "doc_ids": ["feb400000000a0a7f69588aeed0567c8e5c31d1d"], "operation": 2 }
```
Response:
```json
{ "result": [] }
```
#### 新建一个笔记
POST: `https://api.aliyundrive.com/anote/v1/note/create`
```json
{ "value": ["root", {}], "title": "", "drive_id": "" }
```
Response:
```json
{
"status": 0,
"top": 0,
"title": "",
"summary": "",
"media": "[]",
"type": "common",
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"doc_id": "feb400000000a0a7f69588aeed0567c8e5c31d1d",
"drive_id": "9600002",
"created_at": 1647862805027,
"updated_at": 1647862805027,
"media_list": null
}
```
================================================
FILE: adrive sdk/offline.md
================================================
#### 离线任务列表
POST: `https://api.aliyundrive.com/adrive/v1/offline/jobsList`
```json
{}
```
Response:
```json
{ "maxResults": 10, "nextToken": "", "result": [] }
```
================================================
FILE: adrive sdk/recyclebin.md
================================================
#### 列出回收站
POST: `https://api.aliyundrive.com/v2/recyclebin/list`
```json
{ "fields": "*", "all": false, "drive_id": "9600002", "limit": 50 }
```
Response:
```json
{
"items": [
{
"drive_id": "9600002",
"domain_id": "bj29",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"name": "[1.3.1].mp4",
"type": "file",
"content_type": "application/oct-stream",
"created_at": "2022-01-19T04:51:12.832Z",
"updated_at": "2022-03-10T03:10:04.074Z",
"trashed_at": "2022-03-10T03:10:04.074Z",
"file_extension": "mp4",
"mime_type": "application/octet-stream",
"mime_extension": "unknown",
"hidden": false,
"size": 94814980,
"starred": false,
"status": "available",
"labels": ["艺术品"],
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"crc64_hash": "1548000000008183211",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"category": "video",
"encrypt_mode": "none",
"video_media_metadata": {
"width": 1280,
"height": 720,
"video_media_video_stream": [{ "duration": "1530.680000", "clarity": "720", "fps": "25/1", "code_name": "h264" }],
"video_media_audio_stream": [{ "duration": "1530.581333", "channels": 2, "channel_layout": "stereo", "bit_rate": "143625", "code_name": "aac", "sample_rate": "48000" }],
"duration": "1530.701333"
},
"punish_flag": 0,
"creator_type": "User",
"creator_id": "9400000000bc480bbcbbb1e074f55a7f",
"creator_name": "myname",
"last_modifier_type": "User",
"last_modifier_id": "9400000000bc480bbcbbb1e074f55a7f",
"last_modifier_name": "myname",
"revision_id": "6138000000000b81a8164550b1e7cba1d7fbe111"
}
],
"next_marker": ""
}
```
#### 恢复文件
POST: `https://api.aliyundrive.com/v2/recyclebin/restore`
```json
{ "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "drive_id": "9600002" }
```
Response:
```text
HTTP/1.1 204 No Content
```
#### 删除文件(放入回收站)
POST: `https://api.aliyundrive.com/v2/recyclebin/trash`
```json
{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }
```
Response:
```text
HTTP/1.1 204 No Content
```
#### 删除文件(从回收站彻底删除)
POST: `https://api.aliyundrive.com/v3/file/delete`
```json
{ "permanently": true, "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "drive_id": "9600002" }
```
Response:
```text
HTTP/1.1 204 No Content
```
#### 清空回收站
POST: `https://api.aliyundrive.com/v2/recyclebin/clear`
```json
{ "drive_id": "9600002" }
```
Response:
```json
{ "domain_id": "bj29", "drive_id": "9600002", "task_id": "e026000000007f609bcd6aa71b8fde94" }
```
================================================
FILE: adrive sdk/reddot.md
================================================
#### 订阅的账号有更新
POST: `https://api.aliyundrive.com/adrive/v1/reddot/get`
```json
{}
```
Response:
```json
{
"items": [
{
"code": "followed_user_has_new_activity",
"context": {
"creator": {
"description": "中国国家地理景观官方账号,带你领略目酣神醉的壮美景观、发现中国各地独具特色的人文胜迹。",
"avatar": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/2GhCur3G%2F...",
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"nick_name": "中国国家地理景观",
"phone": "136***902"
}
}
}
]
}
```
#### 标记已读
POST: `https://api.aliyundrive.com/adrive/v1/reddot/read`
```json
{"code":"followed_user_has_new_activity"}
```
Response:
```json
{}
```
================================================
FILE: adrive sdk/sbox.md
================================================
#### 保险箱
POST: `https://api.aliyundrive.com/v2/sbox/get`
```json
{}
```
Response:
```json
{ "drive_id": "9600002", "sbox_used_size": 0, "sbox_real_used_size": 0, "sbox_total_size": 53687091200, "recommend_vip": "svip", "pin_setup": true, "locked": true, "insurance_enabled": false }
```
#### 解锁
POST: `https://api.aliyundrive.com/v2/sbox/unlock`
```json
{
"drive_id": "9600002",
"app_id": "25dzX3vbYqktVxyX",
"encrypted_pin": "pteN00000000/gLZpQaFKA==",
"encrypted_key": "nNaV......r13doYbpmJxag=="
}
```
Response:
```json
{ "drive_id": "9600002" }
```
#### 重新锁定
POST: `https://api.aliyundrive.com/v2/sbox/lock`
```json
{"drive_id":"9600002"}
```
Response:
```json
{ "drive_id": "9600002" }
```
================================================
FILE: adrive sdk/search.md
================================================
#### 首页 widgets
POST: `https://api.aliyundrive.com/v2/file/search`
```json
//截图
{
"return_total_count": true,
"image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg",
"order_by": "last_access_at DESC,updated_at DESC,image_time DESC",
"query": "(label = '手机截图' or label = '截图') and category in ['video','image'] and status = 'available' and hidden = false",
"limit": 100,
"drive_id": "9600002"
}
```
```json
//证件
{
"return_total_count": true,
"image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg",
"order_by": "last_access_at DESC,updated_at DESC,image_time DESC",
"query": "(label = '身份证明' or label = '证件' or label = '身份证' or label = '银行卡' or label = '护照') and category in ['video','image'] and status = 'available' and hidden = false",
"limit": 100,
"drive_id": "9600002"
}
```
```json
//最近图片
{
"return_total_count": true,
"image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg",
"order_by": "last_access_at DESC,updated_at DESC,image_time DESC",
"query": "category = 'image' and status = 'available' and hidden = false",
"limit": 100,
"drive_id": "9600002"
}
```
```json
//最近视频
{
"return_total_count": true,
"image_thumbnail_process": "image/resize,m_lfit,w_256,limit_0/format,jpg",
"order_by": "last_access_at DESC,updated_at DESC,image_time DESC",
"query": "category = 'video' and status = 'available' and hidden = false",
"limit": 100,
"drive_id": "9600002"
}
```
Response:
```json
filelist
```
#### 列出人物(face)的图片
POST: `https://api.aliyundrive.com/v2/file/search`
```json
{
"drive_id": "9600002",
"limit": 100,
"order_by": "created_at DESC",
"query": "type = 'file' and category in ['image', 'video'] and face_group_id = 'Group-00000000-1703-4fc0-bf56-369478ed14df' and status = 'available' and hidden = false",
"return_total_count": true
}
```
Response:
```json
filelist
```
================================================
FILE: adrive sdk/sfiia.md
================================================
#### 文件中的图片
POST: `https://api.aliyundrive.com/adrive/v1/sfiia/get_recommends`
```json
{ "drive_id": "9600002" }
```
Response:
```json
{
"items": [
{
"category": "image",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2021-10-16T02:10:51.625Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "png",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"labels": ["衣服", "外貌特征", "其他事物", "艺术品", "笑脸", "墨镜", "护目镜", "微笑", "颜色", "动画", "黄色"],
"mime_type": "image/png",
"name": "cool_11.png",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"punish_flag": 0,
"size": 80480,
"starred": false,
"status": "available",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"type": "file",
"updated_at": "2021-10-16T02:10:51.625Z",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F..."
}
],
"total_image_count": 28943
}
```
================================================
FILE: adrive sdk/share.md
================================================
#### 我创建的分享链接
POST: `https://api.aliyundrive.com/adrive/v3/share_link/list`
```json
{ "category": "file,album", "order_direction": "DESC", "order_by": "created_at", "creator": "9400000000bc480bbcbbb1e074f55a7f", "limit": 100 }
```
Response:
```json
{
"items": [
{
"popularity": 6,
"share_id": "9Q00000000L",
"share_msg": "「testali.alimc」,点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。",
"share_name": "testali.alimc",
"description": "",
"expiration": "2022-04-08T10:29:22.000Z",
"expired": false,
"share_pwd": "",
"share_url": "https://www.aliyundrive.com/s/9Q00000000L",
"creator": "9400000000bc480bbcbbb1e074f55a7f",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"file_id_list": ["6228000000002c31be704ca28671f09712894f4f"],
"preview_count": 2,
"save_count": 0,
"download_count": 0,
"status": "enabled",
"created_at": "2022-03-09T10:29:23.272Z",
"updated_at": "2022-03-19T04:54:26.435Z",
"first_file": {
"trashed": false,
"category": "others",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2022-03-09T10:29:02.190Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "alimc",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"mime_type": "text/plain; charset=utf-8",
"name": "testali.alimc",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"punish_flag": 0,
"size": 7318,
"starred": false,
"status": "available",
"type": "file",
"updated_at": "2022-03-09T10:29:51.415Z",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"user_meta": "{\"client\":\"web\"}"
},
"current_sync_status": 1,
"next_sync_status": 2,
"full_share_msg": "「testali.alimc」https://www.aliyundrive.com/s/9Q00000000L\n点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。",
"popularity_str": "6",
"display_name": "testali.alimc"
},
{
"album": {
"owner": "ccff000000004d75b5788a481eed8386",
"name": "fff",
"description": "",
"album_id": "cfe400000000478599575b69356c5a4962383669",
"file_count": 0,
"image_count": 0,
"video_count": 0,
"created_at": 1642306691089,
"updated_at": 1642306691089,
"is_sharing": true
},
"popularity": 9,
"share_id": "9Q00000000L",
"share_msg": "我用阿里云盘分享了相簿「fff」,复制这段内容打开「阿里云盘」APP 即可获取。\n提取码: ni5u",
"share_name": "fff",
"description": "",
"expiration": "2022-04-06T03:56:13.839Z",
"expired": false,
"share_pwd": "ni5u",
"share_url": "https://www.aliyundrive.com/s/9Q00000000L",
"creator": "9400000000bc480bbcbbb1e074f55a7f",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"album_id": "cfe400000000478599575b69356c5a4962383669",
"preview_count": 4,
"save_count": 0,
"download_count": 0,
"status": "enabled",
"created_at": "2022-03-07T03:56:13.789Z",
"updated_at": "2022-03-09T13:37:25.895Z",
"full_share_msg": "相簿分享「fff」https://www.aliyundrive.com/s/9Q00000000L 提取码: ni5u\n点击链接保存,或者复制本段内容,打开「阿里云盘」APP,使用相册备份节省手机空间,体验智能分类和回忆自动生成。",
"popularity_str": "9",
"display_name": "相簿 ∙ fff"
}
],
"next_marker": ""
}
```
#### 读取一条自己的分享链接的信息
POST: `https://api.aliyundrive.com/adrive/v2/share_link/get`
```json
{ "share_id": "9Q00000000L" }
```
Response:
```json
{
"popularity": 3,
"share_id": "9Q00000000L",
"share_msg": "「返回.gif」,点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。",
"share_name": "返回.gif",
"description": "",
"expiration": "2022-04-20T04:41:04.509Z",
"expired": false,
"share_pwd": "",
"share_url": "https://www.aliyundrive.com/s/9Q00000000L",
"creator": "9400000000bc480bbcbbb1e074f55a7f",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"file_id_list": ["6228000000002c31be704ca28671f09712894f4f"],
"preview_count": 0,
"save_count": 0,
"download_count": 0,
"status": "enabled",
"created_at": "2021-11-09T17:47:43.516Z",
"updated_at": "2022-03-21T04:41:05.159Z",
"first_file": {
"trashed": false,
"category": "image",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2021-11-05T13:40:00.994Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "gif",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"image_media_metadata": {
"exif": "{\"FileSize\":{\"value\":\"58391\"},\"Format\":{\"value\":\"gif\"},\"ImageHeight\":{\"value\":\"556\"},\"ImageWidth\":{\"value\":\"608\"}}",
"height": 556,
"image_quality": { "overall_score": 0.6453010439872742 },
"width": 608
},
"labels": ["其他场景", "其他事物", "日常用品", "颜色", "文本", "手机截图", "信", "蓝色"],
"mime_type": "image/gif",
"name": "返回.gif",
"parent_file_id": "root",
"punish_flag": 0,
"size": 58391,
"starred": false,
"status": "available",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"type": "file",
"updated_at": "2022-01-24T10:53:36.473Z",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"user_meta": "{\"client\":\"web\"}"
},
"current_sync_status": 1,
"next_sync_status": 2,
"popularity_str": "3",
"full_share_msg": "「返回.gif」https://www.aliyundrive.com/s/9Q00000000L\n点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。",
"display_name": "返回.gif"
}
```
#### 复制分享链接到剪切板
POST: `https://api.aliyundrive.com/adrive/v2/share_link/get_share_msg`
```json
{ "share_id": "9Q00000000L" }
```
Response:
```json
{ "full_share_msg": "「返回.gif」https://www.aliyundrive.com/s/9Q00000000L\n点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。", "share_url": "https://www.aliyundrive.com/s/9Q00000000L" }
```
#### 修改分享链接
POST: `https://api.aliyundrive.com/adrive/v2/share_link/update`
```json
{ "share_id": "9Q00000000L", "expiration": "2022-04-20T04:41:04.509Z" }
```
Response:
```json
{
"popularity": 3,
"share_id": "9Q00000000L",
"share_msg": "「返回.gif」,点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。",
"share_name": "返回.gif",
"description": "",
"expiration": "2022-04-20T04:41:04.509Z",
"expired": false,
"share_pwd": "",
"share_url": "https://www.aliyundrive.com/s/9Q00000000L",
"creator": "9400000000bc480bbcbbb1e074f55a7f",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"file_id_list": ["6228000000002c31be704ca28671f09712894f4f"],
"preview_count": 0,
"save_count": 0,
"download_count": 0,
"status": "enabled",
"created_at": "2021-11-09T17:47:43.516Z",
"updated_at": "2022-03-21T04:41:05.159Z",
"first_file": {
"trashed": false,
"category": "image",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2021-11-05T13:40:00.994Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "gif",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"image_media_metadata": {
"height": 556,
"image_quality": { "overall_score": 0.6453010439872742 },
"width": 608
},
"labels": ["其他场景", "其他事物", "日常用品", "颜色", "文本", "手机截图", "信", "蓝色"],
"mime_type": "image/gif",
"name": "返回.gif",
"parent_file_id": "root",
"punish_flag": 0,
"size": 58391,
"starred": false,
"status": "available",
"thumbnail": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"type": "file",
"updated_at": "2022-01-24T10:53:36.473Z",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"user_meta": "{\"client\":\"web\"}"
},
"current_sync_status": 1,
"next_sync_status": 2,
"popularity_str": "3",
"full_share_msg": "「返回.gif」https://www.aliyundrive.com/s/9Q00000000L\n点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。",
"display_name": "返回.gif"
}
```
#### 删除分享链接
POST: `https://api.aliyundrive.com/adrive/v2/share_link/cancel`
```json
{ "share_id": "9Q00000000L" }
```
Response:
```text
HTTP/1.1 200 OK
```
#### 创建分享链接
POST: `https://api.aliyundrive.com/adrive/v2/share_link/create`
```json
{ "drive_id": "9600002", "file_id_list": ["6228000000002c31be704ca28671f09712894f4f"], "expiration": "2022-04-20T08:01:05.278Z" }
```
Response:
```json
{
"popularity": 3,
"share_id": "9Q00000000L",
"share_msg": "「dotull_x86.exe」,点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。",
"share_name": "dotull_x86.exe",
"description": "",
"expiration": "2022-04-20T08:01:05.278Z",
"expired": false,
"share_pwd": "",
"share_url": "https://www.aliyundrive.com/s/9Q00000000L",
"creator": "9400000000bc480bbcbbb1e074f55a7f",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"file_id_list": ["6228000000002c31be704ca28671f09712894f4f"],
"preview_count": 0,
"save_count": 0,
"download_count": 0,
"status": "enabled",
"created_at": "2022-03-21T08:01:03.739Z",
"updated_at": "2022-03-21T08:01:03.739Z",
"first_file": {
"trashed": false,
"category": "others",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2021-12-05T02:05:08.125Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "exe",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"mime_type": "application/vnd.microsoft.portable-executable",
"name": "dotull_x86.exe",
"parent_file_id": "root",
"punish_flag": 0,
"size": 50449456,
"starred": false,
"status": "available",
"type": "file",
"updated_at": "2021-12-05T02:05:08.125Z",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"user_meta": "{\"client\":\"web\"}"
},
"is_photo_collection": false,
"sync_to_homepage": false,
"full_share_msg": "「dotull_x86.exe」https://www.aliyundrive.com/s/9Q00000000L\n点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。",
"popularity_str": "3",
"display_name": "dotull_x86.exe"
}
```
#### 检查是否可以分享
POST: `https://api.aliyundrive.com/adrive/v2/share_link/check_available`
```json
{ "drive_file_list": [{ "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba" }] }
```
Response:
```json
{
"invalid_items": [
{
"trashed": false,
"category": "others",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"content_hash_name": "sha1",
"content_type": "application/oct-stream",
"crc64_hash": "1548000000008183211",
"created_at": "2021-12-05T02:42:36.249Z",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"drive_id": "9600002",
"encrypt_mode": "none",
"file_extension": "qrc",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"hidden": false,
"mime_type": "application/octet-stream",
"name": "赵希予 - 克莱因蓝 - 186 - 克莱因蓝_qm.qrc",
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"punish_flag": 0,
"size": 3979,
"starred": false,
"status": "available",
"type": "file",
"updated_at": "2022-03-21T13:16:16.209Z",
"upload_id": "ED12000000004724833D47B5D5D3C8B9",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"user_meta": "{\"client\":\"web\"}"
}
]
}
```
#### 分析出 shareid(必须是规范的格式)
POST: `https://api.aliyundrive.com/adrive/v2/share_link/extract_code`
```json
{ "content": "「The.Battle.at.L...获取更多免费资源.mkv」https://www.aliyundrive.com/s/9Q00000000L 提取码: f259\n点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。" }
```
Response:
```json
{ "code": "200", "message": "success", "data": { "share_id": "9Q00000000L", "share_pwd": "f259" }, "resultCode": "200" }
```
#### 读取分享链接信息
POST: `https://api.aliyundrive.com/adrive/v2/share_link/get_share_by_anonymous`
```json
{ "share_id": "9Q00000000L" }
```
Response:
```json
{
"creator_id": "deb7000972d84bb6bfa74e42b22beb07",
"creator_name": "霸***组",
"creator_phone": "157***610",
"expiration": "",
"updated_at": "2022-03-22T03:16:01.088Z",
"vip": "non-vip",
"avatar": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/2GhCur3G%2F...",
"share_name": "军检察官多伯曼犬",
"file_count": 1,
"allow_subscribe": false,
"is_creator_followable": true,
"is_following_creator": true,
"display_name": "军检察官多伯曼犬",
"file_infos": [{ "type": "folder", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "file_name": "军检察官多伯曼犬" }]
}
```
#### 打开分享链接
POST: `https://api.aliyundrive.com/v2/share_link/get_share_token`
```json
{ "share_id": "9Q00000000L", "share_pwd": "" }
```
Response:
```json
{
"share_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21Kc29uIjoie1wiZG9tYWluX2lkXCI6XCJiajI5XCIsXCJzaGFyZV9pZFwiOlwiaTJRVllCVVVWQ1dcIixcImNyZWF0b3JcIjpcImNjZmY3ZDYwZWZkZjRkNzRiNTc4OGE0ODFlZWQ4Mzg2XCIsXCJ1c2VyX2lkXCI6XCJhbm9ueW1vdXNcIn0iLCJjdXN0b21UeXBlIjoic2hhcmVfbGluayIsImV4cCI6MTY0Nzg3NjM0MCwiaWF0IjoxNjQ3ODY5MDgwfQ.O-wrga-HmgbN4KUWFEhUDozvFu5qV0sn0ntjzbfGpExWQ9yzPCdxVNi-A-wmXtOHNJ5xwnA2GZnX-FsZZ1EQauaOjSswmcc5xsjEenx1ohJVpXPKgl0iKhd9BmmpURZ_4uByhgXFIcEux-Rob22wyt3_NvvfZotVKrvW-pn0Ne8",
"expire_time": "2022-03-21T15:25:40.247Z",
"expires_in": 7200
}
```
#### 分享链接内文件的下载地址
POST: `https://api.aliyundrive.com/v2/file/get_share_link_download_url`
```json
{ "drive_id": "9600002", "share_id": "9Q00000000L", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "expire_sec": 600 }
```
Response:
```json
{
"download_url": "https://pdsapi.aliyundrive.com/v2/redirect?id=a8c5bda295434d4987610b391010bbd5",
"url": "https://pdsapi.aliyundrive.com/v2/redirect?id=8b59b11717984cab801f651f6503f064",
"thumbnail": "https://pdsapi.aliyundrive.com/v2/redirect?id=e511a261a19949399d9a2ab7cb0bc31a"
}
```
#### 分享链接内文件的预览地址
POST: `https://api.aliyundrive.com/v2/file/get_share_link_video_preview_play_info`
```json
{ "share_id": "9Q00000000L", "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "category": "live_transcoding", "template_id": "", "get_preview_url": true }
```
Response:
```json
{
"share_id": "9Q00000000L",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"video_preview_play_info": {
"category": "live_transcoding",
"meta": { "duration": 1464.669, "width": 672, "height": 504, "live_transcoding_meta": { "ts_segment": 10, "ts_total_count": 147, "ts_pre_count": 3 } },
"live_transcoding_task_list": [
{
"template_id": "SD",
"template_name": "pdsSD",
"status": "finished",
"stage": "stage_none",
"url": "https://pdsapi.aliyundrive.com/v2/redirect?id=15b59a72f8904636bbca16bfa64fbd6d",
"preview_url": "https://pdsapi.aliyundrive.com/v2/redirect?id=467363f46e1e490fa5811ba52c320744",
"keep_original_resolution": true
}
]
}
}
```
#### 标记一个分享链接已读
POST: `https://api.aliyundrive.com/adrive/v1/share_link/subscription/update`
```json
{ "share_id": "9Q00000000L", "update_last_seen": true }
```
Response:
```json
{}
```
#### 导入分享
POST: `https://api.aliyundrive.com/adrive/v1/file/copy`
```json
{"body":{"auto_rename":true,"addition_data":{"umidtoken":"EmdLeXVLOsU9pTV/tFcskzsD8K4J80Ol"},"to_drive_id":"9600002","to_parent_file_id":"root","share_id":"ob7csMtYs9S","file_id":"619b000000006a42a4c143a99dd261777b2e149d"}
```
Response:
```json
{ "domain_id": "bj29", "drive_id": "9600002", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "async_task_id": "9fcb1e1d-0000-0000-b30d-387e04dcafcb" }
```
POST: `https://api.aliyundrive.com/v2/async_task/get`
```json
{ "async_task_id": "9fcb1e1d-0000-0000-b30d-387e04dcafcb" }
```
Response:
```json
{ "async_task_id": "9fcb1e1d-0000-0000-b30d-387e04dcafcb", "state": "Running", "message": "task is running", "total_process": 0, "consumed_process": 0, "punished_file_count": 0 }
```
```json
{ "async_task_id": "9fcb1e1d-0000-0000-b30d-387e04dcafcb", "state": "Succeed", "total_process": 0, "consumed_process": 0, "punished_file_count": 0 }
```
================================================
FILE: adrive sdk/timeline.md
================================================
#### 用户信息
POST: `https://api.aliyundrive.com/adrive/v1/timeline/user/get`
```json
{ "user_id": "9400000000bc480bbcbbb1e074f55a7f" }
```
Response:
```json
{
"description": "",
"avatar": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/2GhCur3G%2F...",
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"nick_name": "myname",
"phone": "151***111",
"is_following": false,
"follower_count": 0,
"homepage_visibility": 1,
"latest_messages": [],
"homepage_visible_time_range_text": "三个月",
"homepage_visible_time_range_in_millis": 7776000000
}
```
#### 用户发布的动态
POST: `https://api.aliyundrive.com/adrive/v1/timeline/homepage/list_message`
```json
{ "order_direction": "DESC", "user_id": "9400000000bc480bbcbbb1e074f55a7f", "limit": 10 }
```
Response:
```json
{ "items": [], "pin_items": [] }
```
#### 推荐订阅
POST: `https://api.aliyundrive.com/adrive/v1/timeline/user/recommend`
```json
{ "user_id": "9400000000bc480bbcbbb1e074f55a7f", "limit": 20, "order_by": "updated_at", "order_direction": "DESC" }
```
Response:
```json
{
"items": [
{
"description": "Hi~小可爱!感恩关注~盘盘酱会不定时发放福利哦!让盘酱陪伴你更久✧( •˓◞•̀ ) ",
"avatar": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/2GhCur3G%2F...",
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"nick_name": "阿里盘盘酱",
"phone": "131***325",
"is_following": true
},
{
"description": "中国国家地理景观官方账号,带你领略目酣神醉的壮美景观、发现中国各地独具特色的人文胜迹。",
"avatar": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/2GhCur3G%2F...",
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"nick_name": "中国国家地理景观",
"phone": "136***902",
"is_following": true
}
],
"next_marker": "MjA="
}
```
================================================
FILE: adrive sdk/token.md
================================================
#### 网页版登录
POST: `https://api.aliyundrive.com/token/get`
```json
{ "code": "f98788cef51641728f2aad9c64a96a63", "loginType": "normal", "deviceId": "CPH800000000AbfFPI5QSJjO" }
```
Response:
```json
{
"default_sbox_drive_id": "9600002",
"role": "user",
"user_name": "151***111",
"need_link": false,
"expire_time": "2022-03-21T09:48:46Z",
"pin_setup": true,
"need_rp_verify": false,
"avatar": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/2GhCur3G%2F...",
"user_data": {
"DingDingRobotUrl": "https://oapi.dingtalk.com/robot/send?access_token=0b4a00000000c08608cd99f693393c18fa905aa0868215485a28497501916fec",
"EncourageDesc": "内测期间有效反馈前10名用户将获得终身免费会员",
"FeedBackSwitch": true,
"FollowingDesc": "34848372",
"ding_ding_robot_url": "https://oapi.dingtalk.com/robot/send?access_token=0b4a00000000c08608cd99f693393c18fa905aa0868215485a28497501916fec",
"encourage_desc": "内测期间有效反馈前10名用户将获得终身免费会员",
"feed_back_switch": true,
"following_desc": "34848372"
},
"token_type": "Bearer",
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9......aixJ4k",
"default_drive_id": "9600002",
"domain_id": "bj29",
"refresh_token": "82ad000000004fbda61b01b5a5cf103b",
"is_first_login": false,
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"nick_name": "mynane",
"exist_link": [],
"state": "",
"expires_in": 7200,
"status": "enabled"
}
```
================================================
FILE: adrive sdk/user.md
================================================
#### 首页 widgets
POST: `https://api.aliyundrive.com/apps/v1/users/apps/widgets`
```json
```
Response:
```json
最近转存,你订阅的分享者有更新了...
```
#### 用户信息
POST: `https://api.aliyundrive.com/v2/user/get`
```json
{}
```
Response:
```json
{
"domain_id": "bj29",
"user_id": "9400000000bc480bbcbbb1e074f55a7f",
"avatar": "https://ccp-bj29-bj-1592982087.oss-cn-beijing.aliyuncs.com/2GhCur3G%2F...",
"created_at": 1623212076923,
"updated_at": 1636164094577,
"email": "",
"nick_name": "mynane",
"phone": "15100000111",
"role": "user",
"status": "enabled",
"user_name": "151***111",
"description": "",
"default_drive_id": "9600002",
"user_data": {},
"deny_change_password_by_self": false,
"need_change_password_next_login": false,
"creator": "",
"permission": null
}
```
#### 用户信息
POST: `https://api.aliyundrive.com/v2/user/update`
```json
{ "user_id": "9400000000bc480bbcbbb1e074f55a7f", "nick_name": "n_mynane4" }
//用户可以修改自己的description,nick_name,avatar
```
Response:
```json
同上userinfo
```
#### 已用空间
POST: `https://api.aliyundrive.com/adrive/v1/user/driveCapacityDetails`
```json
```
Response:
```json
{ "drive_used_size": 7436100078094 }
```
#### 相册 driveId
POST: `https://api.aliyundrive.com/adrive/v1/user/albums_info`
```json
{}
```
Response:
```json
{ "code": "200", "message": "success", "data": { "driveId": "9600002", "driveName": "alibum" }, "resultCode": "200" }
```
#### 实名信息
POST: `https://api.aliyundrive.com/adrive/v1/user_verify/get`
```json
{}
```
Response:
```json
{ "name": "*名子", "rp_verify_status": "pass", "card_number": "1****************3" }
```
#### 用户信息(vip+空间)
POST: `https://api.aliyundrive.com/v2/databox/get_personal_info`
```json
{}
```
Response:
```json
{
"personal_rights_info": {
"spu_id": "non-vip",
"name": "普通用户",
"is_expires": false,
"privileges": [
{ "feature_id": "download", "feature_attr_id": "speed_limit", "quota": -1 },
{ "feature_id": "drive", "feature_attr_id": "size_limit", "quota": 107374182400 },
{ "feature_id": "safe_box", "feature_attr_id": "size_limit", "quota": 53687091200 },
{ "feature_id": "upload", "feature_attr_id": "size_limit", "quota": 2199023255552 },
{ "feature_id": "video", "feature_attr_id": "backup", "quota": 1 },
{ "feature_id": "video", "feature_attr_id": "clarity_limit", "quota": 3 }
]
},
"personal_space_info": { "used_size": 7436100078094, "total_size": 8946416877568 }
}
```
#### 云服务授权管理
POST: `https://api.aliyundrive.com/apps/v1/users/list_app_permissions`
```json
```
Response:
```json
{ "result": [] }
```
#### 登录设备列表
POST: `https://api.aliyundrive.com/users/v1/users/device_list`
```json
```
Response:
```json
{
"result": [
{ "deviceId": "q2e900000000ASdqMZ/pXgt7", "deviceName": "Chrome浏览器", "modelName": "Windows网页版", "city": "北京市", "loginTime": "2022-03-20 08:52" },
{ "deviceId": "SyQo00000000AbfHgMQi2AXv", "deviceName": "Chrome浏览器", "modelName": "Windows网页版", "city": "北京市", "loginTime": "2022-03-01 08:28" }
]
}
```
#### 登录设备列表下线
> 需要先短信验证,获取 umidToken
> POST: `https://api.aliyundrive.com/users/v1/users/device_offline`
```json
{ "deviceId": "q2e900000000ASdqMZ/pXgt7", "token": "CN-SPLIT-AQiE_......zdaLa2BOqAzuwCl3TS5Vp68qw", "umidToken": "dhhL00000000BzV/qXrSsXhU3k6buc1a" }
```
Response:
```json
{ "result": true }
```
#### 未知(相册合并?)
POST: `https://api.aliyundrive.com/adrive/v1/user/albums_migration`
```json
{}
```
Response:
```json
{ "code": "200", "message": "success", "data": { "hasMigrateData": false, "drive": { "driveId": "9600002", "driveName": "alibum" } }, "resultCode": "200" }
```
#### 上报登录设备
POST: `https://api.aliyundrive.com/users/v1/users/device`
```json
{
"modelName": "iPad4,4",
"refreshToken": "3b920000000043f19fbc6b65c8dea11c",
"token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9......",
"deviceName": "iPad"
}
```
Response:
```json
{ "result": true }
```
#### 兑换福利码
POST: `https://member.aliyundrive.com/v1/users/rewards`
```json
{ "code": "山山水水" }
```
Response:
```json
{ "success": false, "code": "30002", "message": "请输入有效的福利码", "totalCount": null, "nextToken": null, "maxResults": null, "result": { "message": "请输入有效的福利码" }, "arguments": null }
```
#### 容量明细
https://pages.aliyundrive.com/mobile-page/capacitymanager.html?disableNav=YES
POST: `https://api.aliyundrive.com/adrive/v1/user/capacityDetails`
```json
```
Response:
```json
{
"capacity_details": [
{ "type": "MEMBER_TASK", "size": 107374182400, "expired": "2022-10-14T05:01:48.935Z", "description": "完成福利社任务", "latest_receive_time": "2021-07-09T11:15:42.845Z" },
{ "type": "NEW_USER", "size": 107374182400, "expired": "permanent", "description": "新用户赠礼", "latest_receive_time": "2021-05-14T07:11:03.521Z" },
{ "type": "REWARD_CODE", "size": 536870912000, "expired": "permanent", "description": "兑换福利码", "latest_receive_time": "2022-02-21T12:08:58.000Z" },
{ "type": "BETA", "size": 3298534883328, "expired": "permanent_condition", "description": "内测专享", "latest_receive_time": "2021-03-18T05:01:21.118Z" },
{ "type": "MEMBER_TASK", "size": 107374182400, "expired": "2021-07-08T11:15:42.905Z", "description": "完成福利社任务", "latest_receive_time": "2021-03-18T05:02:28.160Z" }
]
}
```
#### 福利社任务列表
POST: `https://member.aliyundrive.com/v1/users/task_list`
```json
```
Response:
```json
{
"success": true,
"code": null,
"message": null,
"totalCount": null,
"nextToken": null,
"maxResults": null,
"result": [
{
"idempotent": "5dd6000000004283a4be19f4a5ab647a",
"position": 10,
"id": "51",
"name": "邀请好友用云盘",
"code": "referral",
"actionType": "openLink",
"action": "smartdrive://vipcenter/referral",
"url": "https://pages.aliyundrive.com/mobile-page/web/invitefriends.html",
"appName": null,
"description": "+800G/人",
"backgroundImage": "https://img.alicdn.com/imgextra/i4/O1CN016LFIjK1SRL72iovyX_!!6000000002243-2-tps-819-456.png",
"backgroundColor": "#D9E8FF",
"darkBackgroundColor": "#D9E8FF",
"textColor": "#6FBEEB",
"darkTextColor": "#6FBEEB",
"status": "unfinished",
"createdAt": 1644718396417,
"finishedAt": null,
"notice": "容量一年有效",
"topRightCorner": "限时任务",
"detailName": "",
"detailDescription": "https://pages.aliyundrive.com/mobile-page/web/beinvited.html?code=",
"detailBackgroundImage": "",
"detailIntroduction": null,
"rewards": [{ "icon": "https://img.alicdn.com/imgextra/i1/O1CN015KvMU11Yj65cGXGCp_!!6000000003094-2-tps-72-72.png", "name": "", "description": "有效期一年" }],
"detailRewardNotice": "",
"process": { "current": 0, "max": 0 },
"statusNotice": "",
"explain": null,
"referral": null,
"monthlyCard": null,
"popUps": null,
"shareFissions": null,
"subTasks": null,
"shareAction": null,
"darenShareViewModel": null
},
{
"idempotent": "80bf00000000442b90368c27a7ec3443",
"position": 3,
"id": "66",
"name": "第四周·周任务",
"code": "adrive",
"actionType": "openNative",
"action": "smartdrive://vipcenter/opentaskcarddetail?taskId=66",
"url": "",
"appName": null,
"description": "阿里云盘VIP免费领",
"backgroundImage": "https://img.alicdn.com/imgextra/i3/O1CN01HK76N21tBlGdfXcjm_!!6000000005864-2-tps-1029-612.png",
"backgroundColor": null,
"darkBackgroundColor": null,
"textColor": "#FFD601",
"darkTextColor": "#FFD601",
"status": "finished",
"createdAt": 1645953637620,
"finishedAt": 1647857247562,
"notice": "一个月 VIP",
"topRightCorner": "周年庆",
"detailName": "第四周·周任务",
"detailDescription": "阿里云盘VIP免费领",
"detailBackgroundImage": "https://img.alicdn.com/imgextra/i3/O1CN01HK76N21tBlGdfXcjm_!!6000000005864-2-tps-1029-612.png",
"detailIntroduction": null,
"rewards": [{ "icon": "https://gw.alicdn.com/imgextra/i3/O1CN01nl3rNq1PWQc5cpUWQ_!!6000000001848-2-tps-72-72.png", "name": "阿里云盘VIP", "description": "完成两个任务即可获得1个月阿里云盘VIP " }],
"detailRewardNotice": "",
"process": { "current": 2, "max": 0 },
"statusNotice": "领取阿里云盘VIP",
"explain": { "title": "活动说明:\r\n1. 活动期为2022年3月21日-3月27日。\r\n2. 任务福利将于4月30日开启兑换,所有会员福利最晚兑换时间为2022年6月30日,过期后不可兑换。", "description": "" },
"referral": null,
"monthlyCard": null,
"popUps": null,
"shareFissions": null,
"subTasks": null,
"shareAction": null,
"darenShareViewModel": null
}
],
"arguments": null
}
```
#### 福利社任务详情
POST: `https://member.aliyundrive.com/v1/users/task_detail`
```json
{ "taskId": "51" }
```
Response:
```json
{
"idempotent": "5dd6000000004283a4be19f4a5ab647a",
"position": 10,
"id": "51",
"name": "邀请好友用云盘",
"code": "referral",
"actionType": "openLink",
"action": "smartdrive://vipcenter/referral",
"url": "https://pages.aliyundrive.com/mobile-page/web/invitefriends.html",
"appName": null,
"description": "+800 GB/人 一年有效",
"backgroundImage": "https://img.alicdn.com/imgextra/i4/O1CN016LFIjK1SRL72iovyX_!!6000000002243-2-tps-819-456.png",
"backgroundColor": "#D9E8FF",
"darkBackgroundColor": "#D9E8FF",
"textColor": "#FFD601",
"darkTextColor": "#FFD601",
"status": "unfinished",
"createdAt": 1644718396417,
"finishedAt": null,
"notice": "",
"topRightCorner": "限时任务",
"detailName": "",
"detailDescription": "https://pages.aliyundrive.com/mobile-page/web/beinvited.html?code=",
"detailBackgroundImage": "",
"detailIntroduction": null,
"rewards": [{ "icon": "https://img.alicdn.com/imgextra/i1/O1CN015KvMU11Yj65cGXGCp_!!6000000003094-2-tps-72-72.png", "name": "", "description": "有效期一年" }],
"detailRewardNotice": "",
"process": { "current": 0, "max": 0 },
"statusNotice": "",
"explain": null,
"referral": {
"reward": 300,
"userSignupAmount": 10,
"userAmount": 10,
"newUserTask": 10,
"availableReward": 0,
"verificationReward": 8000,
"limitReward": 8000,
"shortURL": "https://pages.aliyundrive.com/mobile-page/web/beinvited.html?code=0000007"
},
"monthlyCard": null,
"popUps": null,
"shareFissions": null,
"subTasks": null,
"shareAction": null,
"darenShareViewModel": null
}
```
#### 福利社任务批量详情
POST: `https://member.aliyundrive.com/v1/users/batch_task_detail`
```json
{ "taskIds": ["52", "55", "58", "66", "69"] }
```
Response:
```json
[
{
"idempotent": "80bf00000000442b90368c27a7ec3443",
"position": 3,
"id": "66",
"name": "第四周·周任务",
"code": "adrive",
"actionType": "openNative",
"action": "smartdrive://vipcenter/opentaskcarddetail?taskId=66",
"url": "",
"appName": null,
"description": "阿里云盘VIP免费领",
"backgroundImage": "https://img.alicdn.com/imgextra/i3/O1CN01HK76N21tBlGdfXcjm_!!6000000005864-2-tps-1029-612.png",
"backgroundColor": null,
"darkBackgroundColor": null,
"textColor": "#FFD601",
"darkTextColor": "#FFD601",
"status": "finished",
"createdAt": 1645953637620,
"finishedAt": 1647857247562,
"notice": "一个月 VIP",
"topRightCorner": "周年庆",
"detailName": "第四周·周任务",
"detailDescription": "阿里云盘VIP免费领",
"detailBackgroundImage": "https://img.alicdn.com/imgextra/i3/O1CN01HK76N21tBlGdfXcjm_!!6000000005864-2-tps-1029-612.png",
"detailIntroduction": null,
"rewards": [{ "icon": "https://gw.alicdn.com/imgextra/i3/O1CN01nl3rNq1PWQc5cpUWQ_!!6000000001848-2-tps-72-72.png", "name": "阿里云盘VIP", "description": "完成两个任务即可获得1个月阿里云盘VIP " }],
"detailRewardNotice": "",
"process": { "current": 2, "max": 0 },
"statusNotice": "领取阿里云盘VIP",
"explain": { "title": "活动说明:\r\n1. 活动期为2022年3月21日-3月27日。\r\n2. 任务福利将于4月30日开启兑换,所有会员福利最晚兑换时间为2022年6月30日,过期后不可兑换。", "description": "" },
"referral": null,
"monthlyCard": null,
"popUps": null,
"shareFissions": null,
"subTasks": [
{
"id": 67,
"name": "订阅一个云盘订阅号",
"actionType": "openNative",
"action": "smartdrive://app/subscription",
"url": "",
"idempotent": "0c260000000042d493714b53fc6da210",
"status": "finished",
"statusNotice": "已完成",
"position": 0
},
{
"id": 68,
"name": "转存一个订阅号分享的文件",
"actionType": "openNative",
"action": "smartdrive://userpage/openroot?userId=ec11691148db442aa7aa374ca707543c",
"url": "",
"idempotent": "369f000000004f188d85e7f682f9633f",
"status": "finished",
"statusNotice": "已完成",
"position": 0
}
],
"shareAction": null,
"darenShareViewModel": null
}
]
```
================================================
FILE: adrive sdk/video.md
================================================
#### 放映室-列出全部专辑
POST: `https://api.aliyundrive.com/adrive/v2/video/list`
```json
{ "use_compilation": true, "duration": 0, "order_by": "created_at desc", "hidden_type": "NO_HIDDEN", "limit": 50 }
```
Response:
```json
{
"items": [
{
"name": "hotel.2022.mp4",
"thumbnail": "https://api.aliyundrive.com/v2/file/download?drive_id=9600002&file_id=623b00000000d89ef21d4118838aed83de7575ba&video_thumbnail_process=video/snapshot,t_120000,f_jpg,w_480,ar_auto,m_fast",
"type": "file",
"category": "video",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"size": 2623499628,
"starred": false,
"duration": "0",
"independent": true,
"parent_file_id": "root",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"file_extension": "mp4",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"user_meta": "{\"client\":\"web\"}",
"content_type": "application/oct-stream",
"created_at": "2022-03-20T04:26:18.082+00:00",
"updated_at": "2022-03-20T04:26:18.082+00:00",
"trashed_at": null,
"punish_flag": 1,
"video_type": "COMMON",
"video_hidden": false,
"play_cursor": "0",
"video_media_metadata": {},
"video_preview_metadata": { "bitrate": "3996225", "duration": "5251.955000", "height": 1040, "width": 1920, "audio_format": "aac", "frame_rate": "24000/1001" },
"compilation_id": "9600002_6236000000001b86cee34bdab3a5ad1d4d0cd676",
"grand_parent_file_id": null
},
{
"name": "总复习",
"thumbnail": "https://api.aliyundrive.com/v2/file/download?drive_id=9600002&file_id=623b00000000d89ef21d4118838aed83de7575ba&video_thumbnail_process=video/snapshot,t_120000,f_jpg,w_480,ar_auto,m_fast",
"created_at": "2022-01-23T04:21:54.470+00:00",
"updated_at": "2022-01-23T04:21:54.743+00:00",
"trashed_at": null,
"video_type": "COMPILATION",
"video_hidden": false,
"video_nums": "7",
"compilation_id": "9600002_61ec000000009a6068fe4c67936d781b6c2fced2"
}
],
"next_marker": ""
}
```
#### 放映室-最近播放
POST: `https://api.aliyundrive.com/adrive/v2/video/recentList`
```json
{}
```
Response:
```json
{
"items": [
{
"name": "综合复习.mp4",
"thumbnail": "https://api.aliyundrive.com/v2/file/download?drive_id=9600002&file_id=623b00000000d89ef21d4118838aed83de7575ba&video_thumbnail_process=video/snapshot,t_125201,f_jpg,w_480,ar_auto,m_fast",
"size": 167238406,
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"file_extension": "mp4",
"drive_id": "9600002",
"duration": "1800.80",
"play_cursor": "125.201",
"last_played_at": "2022-03-19T13:46:04.000+00:00",
"compilation_id": "9600002_61ec000000009a6068fe4c67936d781b6c2fced2"
}
]
}
```
#### 列出一个专辑包含的文件
POST: `https://api.aliyundrive.com/adrive/v2/video/compilation/list`
```json
{ "duration": 0, "hidden_type": "NO_HIDDEN", "name": "总复习", "limit": 50 }
```
Response:
```json
{
"items": [
{
"name": "热点复习.mp4",
"thumbnail": "https://api.aliyundrive.com/v2/file/download?drive_id=9600002&file_id=623b00000000d89ef21d4118838aed83de7575ba&video_thumbnail_process=video/snapshot,t_120000,f_jpg,w_480,ar_auto,m_fast",
"type": "file",
"category": "video",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"size": 181714186,
"starred": false,
"duration": "1800.080000",
"labels": ["其他场景", "内部场景"],
"independent": false,
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"file_extension": "mp4",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"content_type": "application/oct-stream",
"created_at": "2022-01-23T04:21:54.563+00:00",
"updated_at": "2022-01-23T04:21:54.563+00:00",
"trashed_at": null,
"punish_flag": 0,
"video_type": "COMMON",
"video_hidden": false,
"play_cursor": "0",
"video_media_metadata": {
"duration": "1800.080000",
"height": 1080,
"width": 1920
},
"video_preview_metadata": { "bitrate": "807582", "duration": "1800.080000", "height": 1080, "width": 1920, "audio_format": "aac", "frame_rate": "25/1", "template_list": [{ "status": "finished", "template_id": "HD" }] },
"compilation_id": "9600002_61ec000000009a6068fe4c67936d781b6c2fced2",
"grand_parent_file_id": null
}
],
"next_marker": ""
}
```
#### 从专辑里隐藏一个文件
POST: `https://api.aliyundrive.com/adrive/v2/video/update`
```json
{ "play_cursor": "0", "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "drive_id": "9600002", "hidden": true }
```
Response:
```json
{
"name": "热点复习.mp4",
"thumbnail": "https://api.aliyundrive.com/v2/file/download?drive_id=9600002&file_id=623b00000000d89ef21d4118838aed83de7575ba&video_thumbnail_process=video/snapshot,t_0,f_jpg,w_480,ar_auto,m_fast",
"type": "file",
"category": "video",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"size": 181714186,
"starred": false,
"duration": "1800.080000",
"labels": ["其他场景", "内部场景"],
"independent": true,
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"file_extension": "mp4",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"content_type": "application/oct-stream",
"created_at": "2022-01-23T04:21:54.563+00:00",
"updated_at": "2022-01-23T04:21:54.563+00:00",
"trashed_at": null,
"punish_flag": 0,
"video_hidden": true,
"play_cursor": "0",
"video_media_metadata": {
"duration": "1800.080000",
"height": 1080,
"width": 1920
},
"video_preview_metadata": { "bitrate": "807582", "duration": "1800.080000", "height": 1080, "width": 1920, "audio_format": "aac", "frame_rate": "25/1", "template_list": [{ "status": "finished", "template_id": "HD" }] },
"grand_parent_file_id": null
}
```
#### 播放列表(根据一个文件,列出同专辑的文件列表)
POST: `https://api.aliyundrive.com/adrive/v2/video/compilation/listByFileInfo`
```json
{ "file_id": "623b00000000d89ef21d4118838aed83de7575ba", "limit": "100", "drive_id": "9600002" }
```
Response:
```json
{
"items": [
{
"name": "热点复习.mp4",
"thumbnail": "https://api.aliyundrive.com/v2/file/download?drive_id=9600002&file_id=623b00000000d89ef21d4118838aed83de7575ba&video_thumbnail_process=video/snapshot,t_120000,f_jpg,w_480,ar_auto,m_fast",
"type": "file",
"category": "video",
"url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"size": 181714186,
"starred": false,
"duration": "1800.080000",
"labels": ["其他场景", "内部场景"],
"independent": false,
"parent_file_id": "613800000000336ae9164455b135a9729a298c9c",
"drive_id": "9600002",
"file_id": "623b00000000d89ef21d4118838aed83de7575ba",
"file_extension": "mp4",
"content_hash": "4DBF0000000023E6E756C29AF6AC487217921D53",
"domain_id": "bj29",
"download_url": "https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F...",
"user_meta": "{\"play_cursor\":\"0\"}",
"content_type": "application/oct-stream",
"created_at": "2022-01-23T04:21:54.563+00:00",
"updated_at": "2022-03-21T09:39:07.226+00:00",
"trashed_at": null,
"punish_flag": 0,
"video_type": "COMMON",
"video_hidden": true,
"play_cursor": "0",
"video_media_metadata": {
"duration": "1800.080000",
"height": 1080,
"width": 1920
},
"video_preview_metadata": { "bitrate": "807582", "duration": "1800.080000", "height": 1080, "width": 1920, "audio_format": "aac", "frame_rate": "25/1", "template_list": [{ "status": "finished", "template_id": "HD" }] },
"compilation_id": "9600002_61ec000000009a6068fe4c67936d781b6c2fced2",
"grand_parent_file_id": null
}
],
"next_marker": ""
}
//警告:无用的next_marker
```
#### 播放-更新播放进度
POST: `https://api.aliyundrive.com/adrive/v2/video/update`
```json
{"drive_id":"9600002","duration":"616.235","file_extension":"mp4","file_id":"623b00000000d89ef21d4118838aed83de7575ba","name":"样本.mp4","play_cursor":"148.298","thumbnail":"https://bj29.cn-beijing.data.alicloudccp.com/2GhCur3G%2F..."}
```
Response:
```json
file
```
================================================
FILE: changelog.txt
================================================
#### 2022/10/24
注:因上传下载功能尚未做完,本次仅同步代码不发布安装包
0. 恢复文件上传功能,支持单次上传百万个文件/文件夹,优化上传任务的数据库文件体积过大的问题
1. 优化sha1并发计算逻辑,增加文件sha1的缓存,提升上传大文件的性能
2. Add 上传前弹窗,设置重名冲突(删除/覆盖/自动重命名/不上传)
3. Add 单独的总上传速度限制设置
4. Add 上传文件时只上传可以秒传的文件的设置
5. Add 单独的上传文件时的并发执行数设置(最大50文件同时上传)
6. Add 左侧文件树文件夹对拖放上传的支持
7. Add 上传中列表里文件夹视图
8. Add 优先上传小文件(100M)的支持
9. Fix 按住Ctrl时,点击CheckBox和点击空白处,选中结果不一致的BUG
10. Fix 右键菜单-打开文件位置,没有选中和滚动到指定文件的BUG
11. Fix 断网时,重试上传任务,可能导致上传任务的断点续传进度丢失的BUG
#### 2022/09/18
注:因上传下载功能尚未做完,本次仅同步代码不发布安装包
1. Fix v3.5.23alpha中的20余处小BUG
2. Fix 登录时遇到二次短信验证时不能继续登录的BUG
3. 完善批量重命名功能
4. 完善颜色标记功能
5. 优化文件列表加载显示逻辑,现在很优雅了
6. 优化文件名排序,支持中文数字排序,按win习惯英文在前中文在后
7. 优化文件夹树性能(全部文件夹列出速度加快3倍,20万文件夹不卡顿,树内存占用减少60%)
8. 恢复显示文件夹体积(可按大小排序),优化计算文件夹体积的逻辑(速度加快计算量减少)
9. 底部增加网盘空间信息和文件夹内文件总数量
10. 增加复制文件名和复制目录树的功能
11. 适配更新vite3.1.2,更新全部package到最新版
#### 2022/05/23
v3.5.23alpha 开发人员测试版本
1. Fix 偶发的登录后显示空白窗口的 BUG
2. Fix 登录太多账号时切换账号弹窗不能正确显示的 BUG
3. 优化长时间不用后需要重新登录的问题
4. Fix 偶发的下载中显示空白列表的 BUG
5. Fix 多次弹出升级提示窗口的 BUG
6. Fix 目录下超过 200 个文件夹不能显示的 BUG
7. 重制 APP 设置页面,分组设置,配置保存到 setting.config
8. 优化快捷键(现在很多操作都支持键盘快捷键)
--
v3.05.23.alpha 新增加的功能
文件恢复,放映室,网页版播放器,彻底删除菜单,文件属性菜单,所有列表支持右键菜单,
整盘高级搜索,文件快速筛选,右侧文件拖放移动,文件标记,文件夹快捷方式,我订阅的公众号,
重复文件清理,扫描大文件,扫描重复文件,扫描违规文件,扫描空文件夹,网盘相册间复制,
批量重命名
#### 2022/04/14
1. 修正因阿里云盘官网升级导致的无法使用
2. 优化访问频次问题
3. 修正违禁视频详情BUG
#### 2021/12/05
1. 修正网盘内文件路径过长时下载失败 BUG
2. 优化快捷键功能(帮助文档里有完整的快捷键说明)
3. 增加收藏夹的搜索功能
4. 优化后退按钮(以前是返回父文件夹,现在是后退,最多后退 20 步)
5. 增加优先下载小文件选项
6. 增加雪碧图里视频信息的显示和保存雪碧图按钮
7. 网盘页顶部路径默认隐藏需要在设置里勾选显示
8. 修正m3u8播放链接15分钟后失效的 BUG (现在4小时)
9. 修正之前部分版本代理设置被覆盖的 BUG
10. 增加自定义缓存位置功能
11. 增加帮助文档
#### 2021/11/29
1. 修正 2.11.28 下载显示出错的 BUG
1. 修正登录时遇到二次验证导致点击登录按钮无反应的 BUG
2. 修正自 v2.11.07 开始不能上传体积为 0 的文件的 BUG
3. 修正 v2.11.16 上传文件时占用内存过多的问题
4. 11.16 里 60 文件同时上传会占用大量内存,11.28 里优化为只占用 400MB 以内的内存
5. 修正传输完自动关机触发时机不准确的 BUG
6. 修正上传时遇到没有访问权限的文件/文件夹时上传中队列卡住的 BUG
7. 增加视频文件洗码功能
8. 增加右侧文件拖动到左侧文件夹树(移动文件)功能
9. 优化远程 Aria2 下载功能并修复断线后自动重连
10. 优化本地 Aria2,无法连接时会尝试自动重启一次 Aria2 进程
11. 增加任务栏的下载中上传中进度提示(win/mac)
12. 底部状态栏显示总传输的预估剩余时间
13. 增加上传时跳过同名文件的设置项
14. 优化盘内文件搜索支持选择分类
15. 一些细节优化
#### 2021/11/14
1. 增加创建分享、编辑分享、管理分享功能
2. 完善导入分享功能,支持部分导入和完整导入
3. 增加网盘内文件搜索功能
4. 增加下载时自动过滤违规文件的设置
5. 增加对禁止分享的文件的图标
6. 增加文件/文件夹置顶功能
7. 增加主题跟随系统
8. 增加下载上传完成后自动关机设置
9. 完善 mac 和 linux 下自定义播放软件功能
10. 恢复视频文件雪碧图,增加复制 M3U8 链接和原始视频链接功能
11. 修正 linux 下上传时会自动过滤软链接文件
#### 2021/11/07
1. 优化一次性上传或下载大量文件时的界面卡顿(参阅 挑战一百万.md)
2. 创建日期文件夹支持编号了
3. 新增定时清理回收站功能
4. 新增我创建的分享列表功能(没做完)
5. 增加文件列表显示限制(减少加载中)
6. 恢复导入阿里云盘分享链接功能(仅全部导入)
7. 恢复新建文件功能
8. 恢复版本升级提示功能
9. 修正 windows 下载位置不能选择根目录的 BUG
10. 修正不能上传大于 97.6GB 的文件的问题
11. 修正上传速度显示不准确的 BUG
12. 修正不能同时下载同一个文件(下载到不同的位置)的 BUG
13. 优化部分文件格式图标
#### 2021/10/31
1. 增加文件列表的缩略图模式
2. 修正v2.10.17和v2.10.19版本里一个严重的BUG(删除文件时可能会错误选中父文件夹一起删除)
3. 去除彻底删除按钮
4. 回收站增加清理回收站按钮(一键删除回收站内全部文件)
5. 增加上传和下载的文件过滤功能(自动跳过特定格式的文件)
6. 修正左侧文件夹树和右侧文件列表的互动关联
7. 恢复重命名功能和移动复制功能
#### 2021/10/19
1. 优化文件列出逻辑,节省一半的等待加载中时间
2. 优化v2.9一个文件夹直接包含大量子文件夹时的卡顿和内存剧增问题
一个文件夹里直接包含 17000 个子文件夹时,打开文件夹 v2.9 需要占用 700MB 内存, v2.10 需要占用 190MB 内存
v2.9 当一个文件夹里包含 3000 个以上的子文件夹时,小白羊文件夹树会卡顿
v2.10 无所谓多少个子文件夹,不会卡顿
3. 优化v2.9网盘包含有巨量文件夹时,启动后前几秒会卡顿的问题
4. 优化v2.9上下传记录的本地数据库体积
长期大量上传下载会产生较大的本地记录数据,现在会自动清理
5. 修正v2.9统计文件夹体积功能的本地缓存和运行时CPU内存占用
开启统计文件夹体积功能后,我网盘里有 2 万个文件夹和 31 万个文件,v2.9 会产生 167MB 的缓存,v2.10 会产生 8MB 的缓存
修正了一个会导致 CPU 和内存占用高的 BUG(用户账号 token 失效时,会因为定时统计功能导致 CPU 和内存占用很高)
6. 优化在线预览视频现在支持很多种播放器了
当前只适配了 windows (测试了 MPV,Potplayer,VLC media player,KMPlayer,恒星播放器,SMPlayer)
macos 和 linux 稍后会适配,现在仍旧只能用 mpv 播放器
7. 增加在线预览 word/excel/ppt/pdf 文件的功能
当前,大部分音视频格式,大部分图片格式,word/excel/ppt/pdf/txt,200 余种常见文本格式 都可以在线预览了
8. 修正在文件夹里搜索后,拖动搜索结果里的文件上传,上传文件名错误的 BUG
9. 优化上传前的 sha1 校验速度,提升上传速度
10. 美化了一下界面
11. 增加是否按照完整网盘路径保存的设置
12. 增加关闭窗口立即退出的设置
13. 增加双击才打开文件、文件夹的设置
14. 增加清理缓存的设置
15. 增加运行日志的设置
16. 文件夹树的宽度可以拖动调整了
17. 图片、Office、文本预览现在是单独窗口了
18. 修正一些文件格式识别不准确的 BUG
#### 2021/09/24
1. 修正上传 20GB 以上的文件时,断点续传时进度不准确的 BUG
2. 取消文件列表的加载中状态提示,快速展现文件列表
3. 更新文件列表缓存方式,数据库文件体积减少 73% (14 万个文件从 240MB 降低为 60MB)
4. 增加是否统计文件夹体积的设置开关,减少网盘内文件过多时的白屏问题
5. 同步 v2.9.24 源码到 github
#### 2021/09/19
1. 删除秒传相关功能
2. 修正 v2.8.30 里 aria2 远程模式连接失败的 BUG
3. 修正偶发文件列表只显示占位符不显示文件名的 BUG
4. 修正移动文件后选中文件数显示错误的 BUG
5. 修正批量重命名取消勾选文件夹时子文件名计算错误的 BUG
6. 修正批量重命名点击刷新后因一直加载,不能关闭的 BUG
7. 增加对文件名结尾的点和空格的清理,修正这些文件下载失败的 BUG
8. 修正闲置长时间后上传文件可能出现获取上传地址失败的 BUG
9. 减少因并发数太高容易出现的操作失败 BUG
10. 修正等宽图片预览时,切换下一张后滚动条没有自动回到顶部的 BUG
11. 增加文件列表(F5 键刷新文件,Back 键返回上级文件夹),等宽图片预览(← 上一张,→ 下一张)的快捷键
12. 增加点击头像图片时自动刷新网盘空间用量
13. 增加文件夹独立排序选项
14. 增加直接彻底删除文件的右键菜单
15. 升级数据库架构,提升了加载文件列表的性能,本周重点就是此项,性能提升涉及方方面面的细节,大部分以前加载慢的功能都有了极明显的提升,例如一次性上传包含 10 万个文件的文件夹,不会出现任何卡顿了
16. 修正 v2.9.15 里长时间后上传文件时出现获取上传地址失败的 BUG
17. 增加上传/下载任务出错后等 1 分钟自动重试功能,可以放心挂机下载、挂机上传了
#### 2021/08/30
1. Fix 修正 v1.6.29 大量上传下载后会生成大体积的 数据库 的 BUG
2. Fix 修正 v1.6.29 导入阿里云盘分享链接失败的 BUG
3. Fix 修正 v1.6.29 上传途中重启程序后,重新上传不会断点续传的 BUG
4. Fix 修正部分违规视频不能播放的 BUG,现在可以使用"优先播放转码视频"模式播放了
#
1. Add 增加阿里云盘官方登录接口(手机短信、账号密码、APP 扫码登录)
2. Add 增加多个账号同时登录、切换功能
3. Add 增加 Aria 远程连接设置,可以把文件直接下载到远程电脑/VPS/NAS/Docker
4. Add 增加文件名颜色标记,批量标记功能,观看视频自动标记功能
5. Add 增加文件、文件夹详情功能(文件夹大小,包含文件数),视频文件的雪碧图
6. Add 增加新的图片预览模式,可以放大/缩小/旋转/幻灯片播放
7. Add 增加代码高亮/ json 格式化显示 / txt 在线预览功能
8. Add 增加快速创建日期格式的文件夹
9. Add 增加可选择文件夹是否和文件一起排序了
10. Add 增加所有文件夹体积的显示,可以按照体积排序文件夹了
11. Add windows 上支持 Potplayer 播放器了
12. Add 顶部快捷路径跳转和区间选择功能
#
1. Pro 优化文件复制功能,可极速复制 TB 级/上万文件 到网盘的其他位置
2. Pro 优化导入分享功能,在导入时可以选择网盘里的保存位置,可以勾选要保存的 文件/文件夹
3. Pro 优化上传功能,现在部分不能秒传的大文件,上传前不再需要计算 sha1 了(减少上传时间)
4. Pro 优化 sha1 计算逻辑和性能,同时最多 3 个文件计算 sha1,机械硬盘不会掉速,CPU 不会爆满
5. Pro 现在 windows/macos/linux 都支持拖拽文件、文件夹上传了
6. Pro 优化批量重命名功能,支持勾选文件,支持重命名多级子文件夹,支持 替换/删除/增加/序号/随机字符 等方式
7. Pro 优化在线解压功能,支持全部解压和勾选文件解压,支持有密码的压缩包
#### 2021/06/29
Fix 优化重命名、搜索输入框大小
Fix 修正下载中、上传中页面因进度条动画导致的GPU占用过高的BUG
Fix 中文名导致偶有macos启动失败的BUG
Add 导入阿里云盘分享链接的功能
Add 导入115网盘分享链接的功能
#### 2021/06/21
Fix 显示用户昵称和头像
Fix 完善对字体的支持(可以随意更换自己喜欢的字体了),完善文字大小设置功能
Fix 完善在线预览图片功能(支持旋转,文件夹内全部图片上一张下一张查看)
Fix 文件名是.(点)时导致的创建下载任务失败的BUG
Fix 创建文件夹太快偶发点击文件夹名不能进入的BUG
Add Windows上支持批量拖拽文件/文件夹上传
Add 选择文件/文件夹计算秒传信息保存到网盘内txt文件的功能
Add 导入txt文件类型的秒传链接(支持文件夹嵌套)
Add 新增相册功能(文件可以在相册和网盘之间移动复制)
#### 2021/06/13
Fix 在下载大文件时Aria在某些系统上强制分配硬盘BUG导致下载进度卡死
Fix 优化Aria的连接性,减少出错崩溃
Fix Mac版输出大量无用日志的BUG
Fix 一堆UI细节上的完善
Add 复制文件到...的功能(官方只有移动到...)
Add 批量重命名功能(替换/删除字符,增加前缀,正则表达式替换)
Add 聚合搜索功能(当前搜不到什么,要等以后大家主动分享)
Add 初步支持在线解压缩(zip,rar)
Ver 更新到Flutter2.2.1
#### 2021/06/10
Fix 因阿里云盘API升级导致的无法加载文件列表的BUG
Fix 选择上传文件夹时 可能 需要长时间等待的BUG
Fix 批量下载大量子文件夹时 可能 需要长时间等待的BUG
Fix 修正回收站内文件无法在线播放的BUG
Fix 增加一些在线播放视频格式的支持(m2ts/hevc....)
Add 增加对违规文件的标识
Add 增加深色模式
Add 下载失败时的一些错误提示
Del 去除创建秒传链接的功能,仅支持导入秒传链接(115:// 、aliyun://)
#### 2021/06/06
1. Fix 批量下载时只解析了第一个选中的文件夹的严重BUG
2. Fix 大量操作更新为异步操作,极大的减少了操作等待时间
3. Fix 因阿里云盘升级导致扫码登陆失败的BUG
4. Add 支持导入李恒道版本秒传链接
#### 2021/06/05
1. Add 秒传短链接功能(创建秒传链接、导入别人分享的短链接、短链接本地历史记录)
2. Add 增加115链接批量导入功能(靠运气)
3. Add 增加在线预览文本文件功能
4. Fix 因阿里云盘升级导致扫码登陆失败的BUG
5. Fix 阿里云盘对单次批量操作最多限制100条的限制
6. Fix 在线预览图片时图片大小缩放BUG
7. Fix 按文件名排序时不准确的BUG
#### 2021/05/31
1. Add 上传文件、文件夹功能
2. Add 在线预览图片
3. Add 移动文件、文件夹功能
4. Fix 优化启动时启动后台提示
5. Fix 延长下载链接时效(15分钟->4小时)
6. Fix 文件夹内包含大量文件时多次操作可能回重复拉取的BUG
#### 2021/05/25
1. 上传第一个开发中版本仅供测试
2. 支持 扫码登录/Cookie登录
3. 支持 阿里云盘基本功能
4. 支持 在线预览全格式原画视频(非转码)
5. 支持 批量下载文件/文件夹,只要阿里云不限速,就是满速下载
================================================
FILE: crx/devtools.html
================================================