api - Gmail API : resultSizeEstimate gives odd numbers

标签 api google-api gmail google-api-php-client gmail-api

https://developers.google.com/gmail/api/v1/reference/users/messages/list

Gmail API 允许检索给定查询的邮件数量估计值(来自:[email protected] is:unread)。不知何故,API 返回的数字似乎与网络邮件中显示的数字非常不同。

知道如何返回实际数字吗?

最佳答案

resultSizeEstimate 只是一个估计值,不能保证对于一般查询来说是准确的。它应该为特定标签(“label:MYLABEL”或“label:MYLABEL is:unread”)的查询提供更合理的(仍然是估计的)数字。

不幸的是,除了检索所有数字并查看返回列表的大小之外,目前没有其他方法可以获取实际数字。

关于api - Gmail API : resultSizeEstimate gives odd numbers,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34768930/

相关文章:

javascript - jquery API 请求错误/不会显示 giphy

python - 为什么我无法使用 add_argument() 将 HTTP header 发送到 Flask-RESTful reqparse 模块?

google-api - Google Api被黑客入侵

node.js - 使用node.js中的google api从google驱动器导出文件

java - 如何在不频繁轮询的情况下了解 GMail 上的传入电子邮件?

c++ - Sapera++ API 与 Qt undefined reference '_imp__ZN11SapLocation

api - 如何在 Magento 中获取可配置属性的选项?

android - Google Drive file.getId() 仅在发布版本中为空

javascript - 有没有办法使用 InboxSDK 拦截 Gmail 撰写窗口的“发送”按钮?

email - 使用 Gmail : Failed to authenticate on SMTP server 发送邮件的脚本