I would like to upload some files to my own Google drive from backend. There will be a script which will take the files from a particular folder and upload to my own drive.
I couldn't get my head around on how to do that. In the Google rest api, it mainly talks about OAuth and stuff. At the servers, I cannot open a browser and select a particular account.
Is there a way to generate some special keys that would help me directly upload to my google drive without OAuth?
PS: It would be great if someone can refer me to examples or code.
Links I visited:
- https://developers.google.com/drive/api/v3/quickstart/python
- https://developers.google.com/api-client-library/python/
and many more
Thanks!