2
我知道網址是:什麼是將跨域請求發送到Gmail Feed的方法?
https://mail.google.com/mail/feed/atom
好像gmail的API只提供Gmail的飼料用XML格式。我如何解決這個問題?這段代碼似乎不起作用。
$.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');
}
});
謝謝。