【问题标题】:Efficiently get sender of e-mail from GMail API从 GMail API 有效地获取电子邮件的发件人
【发布时间】:2020-03-25 13:41:11
【问题描述】:

我想在我的 G-mail 收件箱中获取每个 thread 中所有第一封邮件的发件人。为此,看起来我需要列出所有线程,获取线程本身及其所有内容,获取第一条消息,然后遍历其标头。有没有更有效的方法来做到这一点?

Get sender mail in gmail-api

我已经实现了上面的方法并且它可以工作,但是对于 100 个线程,它会产生 1 个 List threads 请求 + 100 个 Get thread 请求。

【问题讨论】:

    标签: gmail-api


    【解决方案1】:

    目前还没有办法做到这一点。

    但是,您可以在 Google Issue Tracker 中提交功能请求,并要求 Gmail.Users.threads:list 方法获得检索每个线程的第一条消息的选项。

    【讨论】:

      猜你喜欢
      • 2014-09-07
      • 2020-09-04
      • 2016-12-23
      • 1970-01-01
      • 2018-08-25
      • 2021-04-27
      • 2018-03-29
      • 2019-04-19
      • 2019-07-12
      相关资源
      最近更新 更多