Read all mails using Gmail API with OAuth

后端 未结 3 613
一向
一向 2021-01-02 07:29

Is there any method to read all mails (i.e. both read and unread) using Gmail API with OAuth.

The following link returns only new mails:

3条回答
  •  旧时难觅i
    2021-01-02 08:08

    On June 25, 2014 Google released new Gmail API that can be used to easily gather messages, threads, labels and more from Gmail accounts. Service is OAuth 2 protected. They provide nice client libraries for Python, .NET and Java and wonderful documentation for those doing RESTful implementation.

    I suggest using their API instead of IMAP - because Gmail has and supports many features that were not designed to run over IMAP. Features like search, tagging, etc...

    You can also check their YouTube video for a nicer introduction.

提交回复
热议问题