# google-drive-batch-requests

> Sends batch requests to Google Drive REST API

Latest version **0.0.4** (published 2015-06-24) · 0 weekly downloads

## Install

```sh
npm install google-drive-batch-requests
pnpm add google-drive-batch-requests
yarn add google-drive-batch-requests
bun add google-drive-batch-requests
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2015-06-24 |
| First published | 2015-06-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Artem Zakharchenko |
| Maintainers | blackrabbit99 |
| Keywords | batch, google, google drive, apis, google-batch, batch-google, googleapi, rest, api, batch-call |

## Links

- npm: https://www.npmjs.com/package/google-drive-batch-requests
- Repository: https://github.com/blackrabbit99/google-drive-batch-requests
- Issues: https://github.com/blackrabbit99/google-drive-batch-requests/issues
- npm.io page: https://npm.io/package/google-drive-batch-requests

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.55.0
- [http-string-parser](https://npm.io/package/http-string-parser.md) 0.0.4

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2015-06-24
- 0.0.3 — 2015-06-19
- 0.0.2 — 2015-06-19
- 0.0.1 — 2015-06-19

## README

google-drive-batch-requests
=========
Sends Batch Requests to Google Drive REST API
=======

Unfortunately google-drive-client-nodejs API doesn't support batch requests
So we decided fork Pradeep Mishra's library to make simple interface for drive api batch calling
The library used for sending batch requests for DRIVE API

```
{	
	var batch = new googleBatch();
	batch.setAuth(authClient.gapi.token);
	
	batch.add({
		method: 'PUT',
		fileId: myId,
		addParents: addParents.join(','),
		removeParents: removeParents.join(','),
		fields: ['title', 'id', 'parents'].join(',')
	});
	
	batch.add({
		method: 'PUT',
		fileId: myId,
		body: {
			title: 'myNewTitle'
		}
	});
	
	batch.exec(function(errors, responses){
		// your stuff
	});
	
}
```



(C) Pradeep Mishra <pradeep23oct@gmail.com>
(C) @blackrabbit99 <myzlio@gmail.com>





```bash
npm install google-drive-batch-requests --save
```

---
_Source: https://npm.io/package/google-drive-batch-requests · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
