v4.0,新增云盘上传接口以及二维码登录相关接口和相关demo,升级部分接口加密方法 #70 , #121 ,#121 , #153 ,#248 , #705 , #716 , #745 , #1055

This commit is contained in:
binaryify
2021-01-03 20:17:26 +08:00
parent 77775b25f5
commit 75cb79fc6a
22 changed files with 543 additions and 195 deletions
+23
View File
@@ -0,0 +1,23 @@
const { cloud, login_cellphone } = require('../main')
const fs = require('fs')
const path = require('path')
async function main() {
const result = await login_cellphone({
phone: '手机号',
password: '密码',
})
const filePath = './test.mp3'
try {
await cloud({
songFile: {
name: path.basename(filePath),
data: fs.readFileSync(filePath),
},
cookie: result.body.cookie,
})
} catch (error) {
console.log(error, 'error')
}
}
main()
Binary file not shown.