

You should consider using a service account if you are going to be accessing private data that you the developer own, if you are going to be accessing data that belongs to another user then you should be using Oauth2. It’s that simple there will be no need for user interaction and a consent screen to popup. To upload to that directory on my google drive account. So I can take the service accounts email address and share with it a directory on my Google Drive account then it will have access You can pre authorize a service account granting it access to your data. Think of a service account as a dummy user. There are a lot of use cases for accessing the Google Drive API v3 with a service account. This Tutorial was completely rewritten in April, 2021
