使用 node.js gmail api 列出收件箱邮件

List inbox messages using node.js gmail api

我已经完成了 this demo, However I am not sure how I would go about listing the actual messages in my inbox. I have looked here,但我不确定如何将其合并到节点中?

提前致谢!对不起,如果这是显而易见的。

最佳,
-佐伊

按照以下步骤操作:

  1. 让你的 node.js client.
  2. enable push notification(新邮件到达时通知您)。
  3. HistoryId 包含在您收到的通知中。
  4. 根据history ID获取邮箱update
  5. 接收历史列表包含 message Id ,使用该消息 ID 和 get 电子邮件。