{"id":17118920,"url":"https://github.com/chyroc/go-aliyundrive","last_synced_at":"2025-04-13T02:32:03.243Z","repository":{"id":38356166,"uuid":"403805500","full_name":"chyroc/go-aliyundrive","owner":"chyroc","description":"阿里云盘 Go SDK","archived":false,"fork":false,"pushed_at":"2023-08-05T05:53:21.000Z","size":492,"stargazers_count":91,"open_issues_count":7,"forks_count":27,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-26T20:21:16.428Z","etag":null,"topics":["aliyundrive","aliyundriver","aliyunpan"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chyroc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-07T01:39:20.000Z","updated_at":"2024-08-08T04:38:55.000Z","dependencies_parsed_at":"2024-06-18T16:52:19.329Z","dependency_job_id":"4241358b-e703-4575-8215-726f7b7973d5","html_url":"https://github.com/chyroc/go-aliyundrive","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Fgo-aliyundrive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Fgo-aliyundrive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Fgo-aliyundrive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Fgo-aliyundrive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chyroc","download_url":"https://codeload.github.com/chyroc/go-aliyundrive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657793,"owners_count":21140842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliyundrive","aliyundriver","aliyunpan"],"created_at":"2024-10-14T17:55:46.677Z","updated_at":"2025-04-13T02:32:02.625Z","avatar_url":"https://github.com/chyroc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-aliyundrive\n\n\u003e 阿里云盘 Go SDK\n\n## 安装\n\n```shell\ngo get github.com/chyroc/go-aliyundrive\n```\n\n## 使用\n\n### 初始化 SDK 实例\n\n```go\nins := aliyundrive.New()\n\n// 下面所有提到的 ins 都是指这个实例\n```\n\n### 登录\n\n\u003e [具体代码参考这里](./_examples/login-by-qrcode/main.go)\n\n\n```go\nuser, err := ins.Auth.LoginByQrcode(context.TODO())\n```\n\n\u003cimg src=\"screenshots/login-by-qrcode.png\" width=\"300px\" \u003e\n\n### 读取文件\n\n\u003e [具体代码参考这里](./_examples/list-files/main.go)\n\n```go\nresp, err := ins.File.GetFileList(context.TODO(), \u0026aliyundrive.GetFileListReq{\n    DriveID:      driveID,\n    ParentFileID: parentID,\n    Marker:       next,\n})\n```\n\n\u003cimg src=\"screenshots/list-files.png\" width=\"300px\" \u003e\n\n### 获取分享的内容\n\n\u003e [具体代码参考这里](./_examples/get-share/main.go)\n\n```go\nsharedInfo, err := ins.ShareLink.GetShareByAnonymous(ctx, \u0026aliyundrive.GetShareByAnonymousReq{\n    ShareID: shareID,\n})\n```\n\n\u003cimg src=\"screenshots/get-share.png\" width=\"300px\" \u003e\n\n## 其他\n\n- 阿里云盘命令行客户端: https://github.com/chyroc/aliyundrive-cli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchyroc%2Fgo-aliyundrive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchyroc%2Fgo-aliyundrive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchyroc%2Fgo-aliyundrive/lists"}