Hello.
I use the Gmail API for receiving emails from the user's mail - everything is fine, everything works. To receive all letters, you need to send requests: for 100 letters - 100 requests. This is probably overloading the server, and I began to look for another way, but so far I have not found anything; decided turned to you.
Are there ways to get multiple emails in one request?
ID code for receiving letters:
var request = gapi.client.gmail.users.messages.list({ 'userId': "me", 'labelIds': labelID, 'maxResults': 10 }); The code for receiving the letters themselves:
return gapi.client.gmail.users.messages.get({ 'userId': "me", 'id': messageID }); Thank you in advance!