pradeep-mishra / google-batch Goto Github PK
View Code? Open in Web Editor NEWSends batch requests to Google REST API
Sends batch requests to Google REST API
batch_idea.js:
var googleBatch = require('google-batch');
var batch = new googleBatch();
// important, always require googleapis using google-batch require() method.
var google = googleBatch.require('googleapis');
node batch_idea.js
returns:
$ node batch_idea.js
C:\Users\travi\dev\Fullerton\node_modules\google-batch\index.js:164
throw error;
^
Error: ENOENT: no such file or directory, open 'C:\Users\travi\dev\Fullerton\node_modules\googleapis\lib\transporters.js'
at Error (native)
at Object.fs.openSync (fs.js:642:18)
at Object.fs.writeFileSync (fs.js:1348:33)
at Function.GoogleBatch.require (C:\Users\travi\dev\Fullerton\node_modules\google-batch\index.js:156:14)
at Object.<anonymous> (C:\Users\travi\dev\Fullerton\batch_idea.js:5:26)
Trying to do a gmail request, and following along with the doc. unfortunately I get a the following error:
/node_modules/google-batch/index.js:19
opts.qs = opts.qs || { };
^
TypeError: Cannot read property 'qs' of null
Google-batch does not support refresh_tokens. You must provide a valid access-token.
I'm not sure what the protocol is for exchanging a refresh token for a new access token, but the standard gmail api client seems to do this automagically for all of the api calls I have used, so it was surprising when google batch was failing using the same auth input.
Here's my current work around. Perhaps there is a better one.
npm still shows "0.0.6 is the latest of 6 releases"
Can you please publish the latest code to npm?
Thank you
mail.users.messages.insert or import not working
Preferably one of APL/MIT/BSD?
Does this API give us the option of making batch request for gmail.user.drafts or gmail.users.threads methods of the google Gmail API? Or is it just for batch requests on the gmail.users.messages object? And can I both list and get messages with this API?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.