使用带有OAuth的Gmail API阅读所有邮件 [英] Read all mails using Gmail API with OAuth

查看:144
本文介绍了使用带有OAuth的Gmail API阅读所有邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用带有OAuth的Gmail API读取所有邮件(即 read unread ).

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

以下链接仅返回 new 邮件:

https://gmail.google.com/gmail/feed/atom

所以我希望检索所有电子邮件.
请帮助我.

So I want all Emails to be retrieved.
Please help me.

推荐答案

2014年6月25日,Google发布了新的 OAuth 2 的保护.它们为 Python RESTful实现.

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.

我建议使用其API而不是IMAP,因为Gmail具有并支持许多并非旨在通过IMAP运行的功能.搜索,标记等功能...

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...

您还可以查看他们的 YouTube视频以获取更好的介绍.

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

这篇关于使用带有OAuth的Gmail API阅读所有邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆