Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

作者你好,第一次使用百度网盘API,想咨询一下 #9

Closed
cplasfwst opened this issue Feb 17, 2022 · 1 comment
Closed

Comments

@cplasfwst
Copy link

我的软件是桌面EXE,我只是想某些数据获取后备份一下在百度网盘,

然而我不知道桌面应用应该如何获取Access Token

我观察auth_accesstoken.go案例 但是参数需要一个code,开放者平台并没有提供

请问有打包好的方法吗?我只是希望自动把文件存到我个人的网盘即可

@jsyzchen
Copy link
Owner

code是通过OAuthUrl方法获取授权地址,然后用户访问该授权地址,用户授权后会跳转到redirectUri地址并且携带code,具体的可以参考下百度网盘开放平台的文档,https://pan.baidu.com/union/doc/0ksg0sbig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants