Reputation: 1349
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?
Upvotes: 2
Views: 2666
Reputation: 110
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 :)
Upvotes: 4