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