How to get gmail emails in my website

拟墨画扇 提交于 2019-12-07 18:51:58

问题


Is there a way to get emails from gmail using some API for emails to go directly in front end of web application through some JSON api or XML format?


回答1:


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

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

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

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

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

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

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 :)



来源:https://stackoverflow.com/questions/16418672/how-to-get-gmail-emails-in-my-website

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!