阿里云盘 Go SDK
go get github.com/chyroc/go-aliyundrive
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