最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

I am having problems with the pydrive2 authorization for access to my google drive - Stack Overflow

programmeradmin4浏览0评论

I have been using the google drive api with PHP for a few years on a desktop app (linux) to do backups to google drive. Works great. I have the client id, etc for this code.

But I want to write the app in python, since sooner or later the PHP library may go away. I have a test program using pydrive2 that does the authorization, then lists the top level files from my google drive, just like the PHP code does.

However, every time I run it, a browser window pops up, asking me to allow access to my google drive. I do so,and get my listing. If I run it again, the same thing happens.

I have the proper credentials (same as with the PHP program) and the access token (again, from the PHP program), but I am guessing that pdrive2 isn't using the token. I have played around with the settings.yaml file to no avail. Can anyone offer any suggestions as to what I need to do?

I did not expect to have the python app ask for authorization every time I ran it.

This question is just a probe to see if this is the right place to ask. If so, I can upload code, etc.

Thanks

发布评论

评论列表(0)

  1. 暂无评论