![]() ![]() ![]() ![]() For more information, all options are detailed here. However, If you have different requirements (OAuth2, JWT, etc), you can supply your own pre-resolved auth reference by passing google auth as an 'auth' option. Further, this credential must have the permissions to impersonate the user email passed in as userId for the folder folderId. By default, this library relies on Environment variable SVC_ACCT_CREDENTIALS to point to a valid Google service account credential file. This library uses the google api node client, and therefore requires credentials. The original problem must have been that I was making too many requests all at once over a very small time period, resulting in a 403 from the Google Drive service by policy. This was initially puzzling (403 code not sufficient to understand the precise issue), but I solved it by serially streaming the files. I wrote this library to codify my solution to a painful experience in which 403 errors developed during larger folder downloads. This library streams files from a google drive folder, and applies conversions (if desired). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |