dongou0524 2019-04-29 20:38
浏览 48
已采纳

OAuth 2用于在Google云端硬盘上移动文件

About a year ago, I wrote a bot, which wrote out photos from Google photos in folders using google drive API. This script created folders with years and months. It was convenient because they could be downloaded easily. Then I used an OAuth authorization, and I had no problems. At the moment, I can't do this. As far as I understand, the rules have tightened, and you need to send the application for review. This requires a separate site on which I will have a privacy page and so on. I do not understand what the problem is, I do not pretend to touch other people's files. I want to use the API for my purposes and my account. A year ago, I just wrote localhost (for the redirect link). Now it is impossible. I found this method, https://developers.google.com/identity/protocols/OAuth2ForDevices but it has not permissions for moving files. Uploading only. Please help me. There must be some other way. I just need to get access to my google drive files via API, without any stupid checks. I do not have a separate site, I do not have an application for everyone. This is just a console script for me, but now it cannot pass authorization with rights for file moving.

  • 写回答

1条回答 默认 最新

  • dongshao5573 2019-05-01 20:02
    关注

    I managed to figure it out on my own. The fact is that in order to use api, it is not necessary to wait for approval of a specific permit (in my case is google drive permit). For your own account, there are not even any warnings, and for someone else's account, when authorization is passed, the system suppresses that the application has not yet passed validation. That's all. And if you're interested in my application for moving photos in date folders, then here it is: https://github.com/devXpro/google-photo-bot

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?