Make a batch request.
Base function for calling Google Drive API. Consult https://developers.google.com/drive/api/v3/reference for information on the resources and methods available.
Optional
opts: StreamMethodOptionsDelete a file or folder in Google Drive.
Download a file or folder in Google Drive.
Get the id of a file or folder in Google Drive.
Get the name of a file or folder in Google Drive.
Base function for calling the get method of Google Drive API's Files resource. Consult https://developers.google.com/drive/api/v3/reference/files/get for information on the request parameters.
Get the MIME type of a file or folder in Google Drive.
List information on a parent folder's children in Google Drive.
Base function for calling the list method of Google Drive API's Files resource. Consult https://developers.google.com/drive/api/v3/reference/files/list for information on the request parameters.
Make a folder in Google Drive.
Move a file or folder in Google Drive.
Protected
optsRename a file or folder in Google Drive.
Base function for calling the update method of Google Drive API's Files resource. Consult https://developers.google.com/drive/api/v3/reference/files/update for information on the request parameters.
Upload a file or folder to Google Drive.
Generated using TypeDoc
Base class containing utils-google-drive methods.
The token and credentials used for authentication can be provided as strings or objects during initialization (
auth.token
andauth.credentials
). Alternatively, paths to the token and credentials can be provided (auth.pathToken
andauth.pathCredentials
).The token is retreived from ./tokenGDrive.json when neither
auth.token
norauth.pathToken
is specified. Similarly, the credentials are retreived from ./credentialsGDrive.json when neitherauth.credentials
norauth.pathCredentials
is specified.Use
opts.rateLimiter
andopts.expBack
to set rate-limiting and exponential backoff behaviors for API calls. The default rate limit is 1,000 requests per 100 seconds. The default behavior for exponential backoff is retrying up to three times for any error thrown.