I know the url is:
https://mail.google.com/mail/feed/atom
It seems like gmail API only provides gmail feeds with XML format. How do I get around the situation? This piece of code doesn't seem to work.
$.ajax({
url: 'https://mail.google.com/mail/feed/atom',
dataType: 'xml',
type: 'GET',
success: function(res) {
var headline = res.responseXML;
console.log(headline);
},
error: function() {
console.log('failed');
}
});
Thanks.
You can't. Letting any random web site read your email would be a bad thing.