@cuxt/ecloud-sdk
v1.0.0
Published
基于fetch API的天翼网盘SDK,支持在Cloudflare Worker中使用
Readme
ecloud-sdk
基于fetch API的天翼网盘SDK,支持在Cloudflare Worker中使用
本项目基于原仓库 wes-lin/cloud189-sdk 进行修改,以支持 Cloudflare Worker。
使用方法
- 安装依赖
npm install ecloud-sdk- 初始化
const { CloudClient } = require('ecloud-sdk')
// 使用账号密码初始化
const client = new CloudClient({
username: 'username',
password: 'password'
})- 使用
const info = await client.getUserSizeInfo()
console.log(info)