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

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

问题描述

是否有任何方法可以使用带有 OAuth 的 Gmail API 读取所有邮件(即 readunread).

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:

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

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

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

推荐答案

2014 年 6 月 25 日,Google 发布了新的 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.

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

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