Node.js Nodejs Gmail OAuth API以获取用户。线程:列表

Node.js Nodejs Gmail OAuth API以获取用户。线程:列表,node.js,google-oauth,gmail-api,Node.js,Google Oauth,Gmail Api,我想获取特定日期时间后的线程列表,但找不到任何方法。 根据Gmail API上次用于获取线程列表的时间,我已将更新的日期时间存储在数据库中。 然后使用更新后的时间,我想进一步检索列表。Gmail API允许您在一次更新后列出线程/消息 假设您希望在2016年7月22日星期五00:00:00 UTC之后收到消息,您将在q-参数中写入之后:1469145600 请求 GET https://www.googleapis.com/gmail/v1/users/me/threads?q=after%3A

我想获取特定日期时间后的线程列表,但找不到任何方法。 根据Gmail API上次用于获取线程列表的时间,我已将更新的日期时间存储在数据库中。
然后使用更新后的时间,我想进一步检索列表。

Gmail API允许您在一次更新后列出线程/消息

假设您希望在2016年7月22日星期五00:00:00 UTC之后收到消息,您将在
q
-参数中写入
之后:1469145600

请求

GET https://www.googleapis.com/gmail/v1/users/me/threads?q=after%3A1469145600&access_token={YOUR_ACCESS_TOKEN}
响应

{
 "threads": [
  {
   "id": "1561153ce695b9ab",
   "snippet": "Infinite Elgintensity has uploaded Gym Idiots - Spread Eagle Rows & Mike O'Hearn 585-Lb. Squat A montage of gym fails with... Infinite Elgintensity has uploaded Gym Idiots - Spread Eagle Rows",
   "historyId": "895071"
  }
 ],
 "resultSizeEstimate": 1
}

Gmail API允许您在一次访问之后列出线程/消息

假设您希望在2016年7月22日星期五00:00:00 UTC之后收到消息,您将在
q
-参数中写入
之后:1469145600

请求

GET https://www.googleapis.com/gmail/v1/users/me/threads?q=after%3A1469145600&access_token={YOUR_ACCESS_TOKEN}
响应

{
 "threads": [
  {
   "id": "1561153ce695b9ab",
   "snippet": "Infinite Elgintensity has uploaded Gym Idiots - Spread Eagle Rows & Mike O'Hearn 585-Lb. Squat A montage of gym fails with... Infinite Elgintensity has uploaded Gym Idiots - Spread Eagle Rows",
   "historyId": "895071"
  }
 ],
 "resultSizeEstimate": 1
}