repositorypackage
0.0.0-20231207234301-271637c7d93a
Repository: https://github.com/antman2023/go-aliyundrive.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
go-aliyundrive
阿里云盘 Go SDK
安装
go get github.com/chyroc/go-aliyundrive
使用
初始化 SDK 实例
ins := aliyundrive.New()
// 下面所有提到的 ins 都是指这个实例
登录
user, err := ins.Auth.LoginByQrcode(context.TODO())

读取文件
resp, err := ins.File.GetFileList(context.TODO(), &aliyundrive.GetFileListReq{
DriveID: driveID,
ParentFileID: parentID,
Marker: next,
})

获取分享的内容
sharedInfo, err := ins.ShareLink.GetShareByAnonymous(ctx, &aliyundrive.GetShareByAnonymousReq{
ShareID: shareID,
})

其他
- 阿里云盘命令行客户端: https://github.com/chyroc/aliyundrive-cli