

Manages fetchRejectsOnHttpErrors of all the GDriveApi instances stored in this class instance.

Manages fetchCoercesTypes of all the GDriveApi instances stored in this class instance. The instance to manage files in a google drive. Get the token from a package you choose to use. The access token to be used in subsequent calls to the api.

The default value is "foo_bar_baz".Ĭreates an instance of MediaUploader, an Uploader descending class handling media uploads.Ĭreates an instance of MetadataOnlyUploader, an Uploader descending class handling metadata-only uploads.Ĭreates an instance of MultipartUploader, an Uploader descending class handling multipart uploads.Ĭreates an instance of ResumableUploader.Ī GDrive instance stores your google sign-in token and the instances of the GDriveApi descendants.

The boundary string to be used for multipart uploads. QueryParameters.q can be a ListQueryBuilder instance. Returns an Object if the call succeeds and fetchCoercesTypes is true. Returns a string if the call succeeds and fetchCoercesTypes is true. Returns a Files resource if the call succeeds and fetchCoercesTypes is true. E.g.: await (fileId, null, "1-1") Ĭopy(fileId, queryParameters, requestBody = ) The parameter range for the methods that accept it is specified as here with one exception: queryParametersOrFields can be an object containing the query parameters or a string, containing a fields value.Įxtending GDriveApi, this class is used to manage files in a google drive. Gets various information, returning an About resource if the call succeeds and fetchCoercesTypes is true. setData(, MimeTypes.BINARY)Ĭonsole.log(await (id)) Įxtending GDriveApi, this class gives access to various information. Gdrive.accessToken = (await GoogleSignin.getTokens()).accessToken Ĭonst id = (await () Quick example: // = List files, create a binary file and read it = // Installation npm i -save something doesn't work as expected, please do have a look at an example project before opening an issue. I use (thanks for the great work, vonovak!). It doesn't provide any authorization mechanism, so another package has to be used. This wrapper facilitates the use of the google drive api.
