MCPcopy Create free account
hub / github.com/badyun/AShare / node

Method node

utils/cloud.js:97–105  ·  view source on GitHub ↗
(file_id, user_name)

Source from the content-addressed store, hash-verified

95
96 // 获取文件信息
97 async node(file_id, user_name) {
98 let s = await this.http('https://api.aliyundrive.com/v2/file/get_download_url', {
99 drive_id: this.info.default_drive_id,
100 file_id: file_id,
101 expire_sec: 7200,
102 file_name: user_name
103 })
104 return s
105 }
106
107 // 列出文件预览
108 async previewVideo(file_id) {

Callers 2

getFunction · 0.80
file.jsFile · 0.80

Calls 1

httpMethod · 0.80

Tested by

no test coverage detected