简体   繁体   中英

HTML PHP JavaScript Whatever to Check Gmail Unread Count

How do all these browser plugins, notifiers, etc. check your gmail unread count?

I'm trying to write a Safari Extension (which happens to be in javascript but I don't think it matters) and I can't figure out how to parse the Gmail atom feed ( https://mail.google.com/mail/feed/atom ) to get the unread count.

Thanks,

From within a Safari extension, you should be able to do cross-domain XMLHttpRequest and use the responseXML property to access the DOM. However, you need to configure the extension to be able to access Google's servers. See this question .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM