如何在我的网站上获取Gmail邮件 [英] How to get gmail emails in my website

查看:142
本文介绍了如何在我的网站上获取Gmail邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

推荐答案

有没有办法从Gmail获取电子邮件,使用一些API,电子邮件可以通过一些JSON api或XML格式直接转到Web应用程序的前端?解决方案

解决方案

您可以使用GMAIL API的gmail电子邮件... XOAUTH将在其中展现。

You can get gmail emails using GMAIL API's ... XOAUTH will come into picture in it.

步骤1.使用OAUTH 2.0获取访问令牌和刷新GMAIL帐户的令牌。

Step 1. Use OAUTH 2.0 to get access token and refresh token of GMAIL account.

步骤2.在XOAUTH中使用该访问令牌,并借助GMAIL API访问GMAIL的所有文件夹和电子邮件。

Step 2. Use that access Token in XOAUTH and with the help of GMAIL API's access all the folders and emails from GMAIL.

请参阅 - > https: //developers.google.com/google-apps/gmail/oauth_overview 了解更多信息

Please refer -> https://developers.google.com/google-apps/gmail/oauth_overview for more information

没有可用于前端的库,例如JSON或XML ..
你必须使用python,java或PHP ..

There are no libraries available for front end .. ie JSON or XML.. You have to use either python ,java or PHP..

你可以参考: http://context.io/ ...这可能会帮助你f或者你需要...

You can refere: http://context.io/ ... which might help you for what u need...

http://context.io/ 提供API,通过它可以通过REST访问和同步您的电子邮件。
您将以JSON的形式获得响应,您可以轻松地解析...希望它有帮助:)

http://context.io/ provides API's through which you can access and sync your email through REST . You would get response in form of JSON which you can easily parse... Hope it helps :)

这篇关于如何在我的网站上获取Gmail邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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