[英]HTML PHP JavaScript Whatever to Check Gmail Unread Count
How do all these browser plugins, notifiers, etc. check your gmail unread count? 所有这些浏览器插件,通知程序等如何检查您的gmail未读计数?
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. 我正在尝试编写Safari扩展程序(碰巧是在javascript中,但我认为这并不重要),我不知道如何解析Gmail原子供稿( https://mail.google.com/ mail / feed / atom )以获取未读计数。
Thanks, 谢谢,
From within a Safari extension, you should be able to do cross-domain XMLHttpRequest
and use the responseXML
property to access the DOM. 从Safari扩展中,您应该能够执行跨域
XMLHttpRequest
并使用responseXML
属性访问DOM。 However, you need to configure the extension to be able to access Google's servers. 但是,您需要配置扩展程序才能访问Google的服务器。 See this question .
看到这个问题 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.