如何获得 Google Plus 通知计数? [英] How to get Google Plus Notifications count?

查看:26
本文介绍了如何获得 Google Plus 通知计数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 Google Chrome 扩展程序,我想在后台运行的脚本中检索当前用户的 Google+ 通知计数.是否可以?我在 https://developers.google.com/+/api/ 研究了 Google+ API不过好像还不支持.

I'm developing a Google Chrome extension and I want to retrieve Google+ notifications count for current user, in a script running in the background. Is it possible? I studied the Google+ APIs at https://developers.google.com/+/api/ but it seems not supported yet.

无论如何怎么可能检索计数值?我尝试了一个(允许跨域的)AJAX 请求,但通知值似乎是在运行时生成的,在 JavaScript 中.

How is it possible to retrieve the count value anyway? I tried with a (cross-domain permitted) AJAX request, but the notification value seems generated at runtime, in JavaScript.

推荐答案

您是对的,无法从官方 API 访问通知或当前通知计数.由于抓取页面违反开发者政策,结果在非常脆弱的集成中,我建议不要尝试对其进行逆向工程.

You're correct that there's no way to access the notifications or the current notification count from the official API. Since scraping pages is against the developer policy, and results in really brittle integrations, I'd recommend against trying to reverse engineer it.

对此 API 的请求是在平台问题跟踪器中进行跟踪.如果您为问题加注星标,您会在问题更新时收到通知.

A request for this API is being tracked in the platform issue tracker. If you star the issue you'll be notified when it's updated.

这篇关于如何获得 Google Plus 通知计数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆