Gmail REST API似乎可能存在严重问题。Gmail REST API获取邮件功能返回无效historyId
- 呼叫/用户名/邮件获取信息的列表
- 对于每一个,呼叫/用户名/邮件/ ID得到的消息
- 获得最高(或)startHistoryId每个消息对象 上
- 然后调用/用户名/历史/列表传递startHistoryId作为参数
结果是出乎意料的。 Gmail REST API正在返回404 Not Found ..似乎返回的historyId未注册或无效。
在调用/ userId/profile时,startHistoryId有效,并且可以在/ userId/history/list调用中成功使用。
com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
{
"code" : 404,
"errors" : [ {
"domain" : "global",
"message" : "Not Found",
"reason" : "notFound"
} ],
"message" : "Not Found"
}
这是因为Gmail会为只在点的消息historyId创建消息时?如果消息是在不久前创建的,那么历史参考将被删除? – jamie