阅读使用OAuth从Gmail API的所有邮件 [英] Read all mails from gmail api using oauth

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

问题描述

有没有阅读所有邮件的方法,即:使用OAuth未读都来自Gmail的API读取和
下面的链接将返回唯一的新邮件

Is there any method to read all mails ie:read and unread both from gmail Api using 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日谷歌发布新的,可以用来方便地从Gmail账户收集邮件,线,标签和更多的Gmail API 。服务是的OAuth 2 保护。它们提供的Python ,的。NET 并的 Java的并为那些做的 REST风格的实施

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 futures that ware not designed to run over IMAP. Futures like search, tagging, etc...

您还可以检查自己的 YouTube视频的获得更好的介绍。

You can also check their YouTube video for nicer introduction.

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

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