支持nodejs调用 #773

This commit is contained in:
binaryify
2020-05-18 15:09:39 +08:00
parent e9fe4351b4
commit ff8d57a34a
5 changed files with 67 additions and 1 deletions

22
module_example/test.js Normal file
View File

@ -0,0 +1,22 @@
const { login_cellphone, user_cloud, album_sublist } = require('../main')
async function test() {
try {
const result = await login_cellphone({
phone: '手机号',
password: '密码'
})
console.log(result)
const result2 = await user_cloud({
cookie: result.body.cookie
})
console.log(result2.body)
const result3 = await album_sublist({
cookie: result.body.cookie
})
console.log(result3.body)
} catch (error) {
console.log(error)
}
}
test()