codehunter
codehunter

Reputation: 1

access public files with google drive

I've public files in my google drive account. I want to make a desktop application (.NET) for other users and this application needs read-only access to those public files in my account. Is this possible with google drive?

i checked the documentation but i found only the following:

  1. OAuth2 authentication but if i'm correct this is used to give an application access to the user his own account instead of my account
  2. Service account but this is only usable if the program runs on a server i control. Not suitable for a desktop application

Can someone put me in the right direction?

Upvotes: 0

Views: 123

Answers (1)

Jay Lee
Jay Lee

Reputation: 13528

You would use OAuth 2.0 authentication against your account and a scope of:

https://www.googleapis.com/auth/drive.readonly

so that your app has read-only access to your Drive files.

Upvotes: 1

Related Questions