【发布时间】:2018-08-13 17:19:08
【问题描述】:
例如,我在以下场景中需要批处理请求:
使用Gmail.Users.Threads.list(..) 后,我想批量执行几个Gmail.Users.Threads.get(threadId,..) 操作。
我说的是类似于gapi.client.newBatch(); 调用javascript gmail api 的东西。
首先在应用程序脚本中,需要在高级 Google 服务中启用 Gmail v1 Api,如 here 所述。
然后在谷歌应用脚本中使用 Gmail Api 如下所示:
建议是:
Users : UsersCollection
newAutoForwarding() : AutoForwarding
newBatchDeleteMessagesRequest() : BatchDeleteMessagesRequest
newBatchModifyMessagesRequest() : BatchModifyMessagesRequest
newDraft() : Draft
newFilter() : Filter
newFilterAction() : FilterAction
newFilterCriteria() : FilterCriteria
newForwardingAddress() : ForwardingAddress
newImapSettings() : ImapSettings
newLabel() : Label
newLabelColor() : LabelColor
newMessage() : Message
newMessagePart() : MessagePart
newMessagePartBody() : MessagePartBody
newMessagePartHeader() : MessagePartHeader
newModifyMessageRequest() : ModifyMessageRequest
newModifyThreadRequest() : ModifyThreadRequest
newPopSettings() : PopSettings
newSendAs() : SendAs
newSmimeInfo() : SmimeInfo
newSmtpMsa() : SmtpMsa
newVacationSettings() : VacationSettings
newWatchRequest() : WatchRequest
没有建议newBatch()。
【问题讨论】:
-
我的回答对您有用吗?如果您在我的回答中有问题,请随时告诉我。这些信息有助于我学习。另外我认为它可以帮助其他用户了解情况作为信息。
标签: javascript google-apps-script gmail-api