I try to access shared Google Drive files through Python.
I have created an OAuth 2.0 ClientID as well as the OAuth consent.
I have copy-pasted this code: https://github.com/googleworkspace/python-samples/blob/master/drive/quickstart/quickstart.py
The authorization is successful, however, the Python code returns a blank list indicating there are no files in Google Drive, although there are many.
Should there be a difference because I am trying to access a shared folder, if yes, could it cause the error, and how this can be solved?
If not, is this the right approach? I read about API keys and Service Accounts as well, would it make sense to use either of them? Later this service I create will be used by other users on Databricks (running on AWS), and I do not know which solution would be the best one.
Thank you for your help!