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

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

问题描述

是否有任何方法可以通过 OAuth 使用 Gmail API 读取所有邮件(即已读未读).

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

以下链接仅返回邮件:

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

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

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

推荐答案

Google 于 2014 年 6 月 25 日发布了新的 Gmail API 可用于从 Gmail 帐户轻松收集邮件、话题、标签等.服务受OAuth 2 保护.他们为 Python 提供了很好的客户端库,.NETJava 以及为那些做 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.

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

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