googlearchive / PyDrive

Google Drive API Python wrapper library
Other
1.31k stars 272 forks source link

Authorize from service_account.json #187

Open awemulya opened 4 years ago

awemulya commented 4 years ago

I want my application to authorize using service_account.json instead of client_secrets.json or credentials. How can I acheive this. Thanks in advance.

hadilo commented 4 years ago

i need too, please

rmasters commented 3 years ago

Hey 👋 I've written a small hack to get Pydrive working with a typical service_account.json file.

https://gist.github.com/rmasters/0f71267dfbb01ded07fe4c873254d2e4

This isn't feature-complete (I haven't investigated all of the Pydrive settings) but might help you get basic Drive access working (and works for us @Lendable).

shcheklein commented 3 years ago

@rmasters PTAL at the iterative/PyDrive2 it supports json service files for a while I think

rmasters commented 3 years ago

iterative/PyDrive2

@shcheklein Aha thanks Ivan, we'll check that out!