Google API Batch Request with Node

拟墨画扇 提交于 2019-12-23 06:48:33

问题


I noticed Google removed batch requests from their Node client recently:

https://github.com/google/google-api-nodejs-client/blob/0db674b7d3a04cf65e223f876cf7b3f427025cd4/MIGRATING.md

How might I write a batch request with Node? I'm trying to get the content of emails in Gmail given a set of message IDs.

Here's how Google says I should do it, but I've never made this type of request before:

https://developers.google.com/gmail/api/guides/batch


回答1:


I've created a module as a stop gap! https://github.com/wapisasa/batchelor

I hope this got to you in time :)



来源:https://stackoverflow.com/questions/27883636/google-api-batch-request-with-node

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!