We need to switch from google client library to Gmail REST api in our project, and I\'ve encountered a problem with batch() because it is not available in REST api - you can
Just wanted to say that Lucila's answer is now the correct one - the global (https://www.googleapis.com/batch
) endpoint is now deprecated, and you must make a post request to your request-specific endpoint (https://www.googleapis.com/batch/gmail/v1
for gmail, for instance).
See this link for additional context.
Apologies for making a new answer for this, I don't have enough reputation to leave a comment.