Search code examples
node.jsgmailgmail-api

List inbox messages using node.js gmail api


I have done this demo, However I am not sure how I would go about listing the actual messages in my inbox. I have looked here, but I am not sure how to incorperate that into node?

Thanks in advance! sorry if this is blatantly obvios.

best,
-Zoe


Solution

  • follow the below steps:

    1. make your node.js client.
    2. enable the push notification(that notify you when new email arrived).
    3. HistoryId contains in The notification you received.
    4. Get your mailbox update according history ID.
    5. Receive history list contain message Id , use that message Id and get the email.