Nat
Nat

Reputation: 77

How to avoid auth page using google drive api with pydrive

I`m automating uploading files to google drive using pydrive.

I`m trying to avoid the authentication page that shows google every time i authenticate with the api. enter image description here

I`ve read some blogs about it but I dont get anything clear.

Upvotes: 3

Views: 1494

Answers (1)

Gabriel Carballo
Gabriel Carballo

Reputation: 1333

There are 2 ways in which you can accomplish what you are trying to do:

1 - You can use a Service account, there is a good example of how you could work on by using a service account the following thread.

2 - You can try using a Refresh token, you can check this thread that provides a good example on when you can use the Refresh token to automatize access to your own account.

Both scenarios should give you an idea of what's the best way to accomplish what you are trying to do depending on your approach.

Upvotes: 2

Related Questions