Find answers from the community

s
F
Y
a
P
Updated last year

Is anyone using the google drive reader

Is anyone using the google drive reader in an API?

My workflow is:
  • User auths with google and I store their access_token and refresh token
  • User sends some folder_ids over to the API
  • I refresh credentials using the refresh token if necessary
  • GoogleDriveReader attempts to download and index the documents
My problem with this process is that the google drive reader launches it's own callback process, waiting for OAuth callbacks... This means my API is launching web pages rather than just processing the data.
b
H
S
4 comments
Sounds like you might want to handle google auth outside of the google reader
I've already done that. I've fixed it by manually creating the creds.txt that pydrive needs... bit hacky but it works
@HABBYMAN did you wind up finding a solution for this usecase? I'm looking to do something similar with Quickbooks at the moment, looking for examples of the clientside oauth for REST-based tools used in webapps.
No real solution in sight ATM. I think it comes down to my implementation of Google's oauth libraries though. You can get around it by creating new credentials.txt for each subsequent call to the API, but it's a mess
Add a reply
Sign up and join the conversation on Discord