如何从 Blogger 的 Google Data API 获取关注者列表?
我能够获取特定用户配置文件 ID 的“创作”博客列表,并且其响应以 JSON 格式提供。但是,当我尝试请求个人资料(其中包含关注者列表)时,我只能获得 HTML 格式的结果。
有什么方法可以获取数据协议格式(即 XML 或 JSON)的列表吗?
I am able to get the list of 'authored' blogs for a particular user profile-id and its response is available in JSON. However, when I try to request the profile (which has the list of followers), I can only get the result in HTML.
Is there any way to get the list in a data-protocol format (i.e., XML or JSON)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在花了几天时间尝试不同的 API 后,我确信关注者列表无法通过 Blogger 获得。我使用了 Blogger API、客户端库,并从源代码构建了 GData java 客户端以使用 Containers 和 BloggerService 类。每一个都以可编程协议方式提供对提要(如预期)的访问,并且配置文件显示以下博客列表(不要与创作的博客混淆)——只能以 HTML 形式返回。这对于编程界面来说是不实用的,因为用户可以选择不显示小部件。为什么这个不可用??我认为这是三个原因之一:
该信息可能通过 Google Friends Connect 提供。我一直在阅读其中的一些材料(按照上面莱尼尔的建议)。不过,我很好奇这将如何尝试恢复与 Blogger 的关系——如果有的话。
无论如何,任务现在已经死了。感谢您的聆听!
After spending several days trying different APIs, I am convinced that the list of followers is not available through Blogger. I worked with the Blogger API, the Client Libraries and built the GData java client from source to use the Containers and BloggerService classes. Each one, provided access to the feeds (as expected) in a programmable-protocol fashion and the profile, which displays the list of following blogs (not to be confused with the authored blogs) -- can only be returned as HTML. This is not practical for a programming interface as the user can choose to not show the widget. Why isn't this available?? I think it is one of three reasons:
It is possible that the information is available through and for Google Friends Connect. I have been reading some of that material (following Leniel's suggestion above). However, I am curious how that will try back the relationship to Blogger -- if at all.
Anyway, the task is dead for now. Thanks for listening!