79232589

Date: 2024-11-28 04:34:24
Score: 1.5
Natty:
Report link

Got it!

Setting the scope for the service account credential is all that is needed:

    _serviceAccountCredential.Scopes = new string[]
    {
        Google.Apis.Drive.v3.DriveService.Scope.DriveReadonly
    };

I can now read the contents of my google drive folder.

[I know the StackOverflow rules prohibit answers generated by AI, but hats off to Gemini to pointing me in the right direction when I asked how to generate the token. It pointed me to this answer in StackOverflow.]

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Thomas O'Dell