【问题标题】:gmail api messages.list returns messages that do not show up in the UIgmail api messages.list 返回未显示在 UI 中的消息
【发布时间】:2015-09-22 12:50:42
【问题描述】:

当我通过

检索消息时
"gmail/v1/users/me/messages?q=\"#{query}\"&maxResults=1&access_token=#{access_token}"

我收到 1 条消息,但是当我在 gmail UI 中运行相同的查询时,我确实(正确地)找不到它

in:Inbox after:1969-12-30 -in:MyLabel

但该消息显然有 MyLabel ...所以我必须下载所有消息,然后手动进行标签检查...这很糟糕...任何解释为什么会发生这种情况?

【问题讨论】:

    标签: gmail-api


    【解决方案1】:

    好的 ... derp ... 正确编码查询有助于 ... q=#{CGI.escape(query)} 工作 ...

    【讨论】:

      猜你喜欢
      • 2020-12-09
      • 2018-02-22
      • 2018-07-25
      • 1970-01-01
      • 2016-12-23
      • 1970-01-01
      • 1970-01-01
      • 2015-06-30
      • 2015-08-26
      相关资源
      最近更新 更多