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/