Google Reader API? [英] Google Reader API?

查看:101
本文介绍了Google Reader API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以插入任何Google Reader API吗?我用PHP构建了一个干净的RSS/Atom阅读器,并希望从Google阅读器中获取所有信息,例如提要的历史记录,能够为每个提要项添加评论等.

Is there any Google Reader API that I can plug in to? I building a clean RSS/Atom reader in PHP and would love to get all the goodies from Google Reader like the history of a feed, able to add comments to each feed item, etc.

推荐答案

我已经在python中建立了一些Google阅读器集成,但是我可以共享一些api知识,因此您可以开始使用. output = json也适用于所有人.

I've built some google reader integration in python but I can share some of the api knowledge so you can get started. output=json is also available for all.

登录:https www.google.com/accounts/ClientLogin

POST &email=email&passwd=password&service=reader&source=appname&continue=http://www.google.com

从响应抓取Auth =

from the response grab Auth=

下次点击:www.google.com/reader/api/0/token

Next hit: www.google.com/reader/api/0/token

HEADER Authorization=GoogleLogin auth=$Auth

该响应将成为会话的$ token.

That response becomes $token for the session.

从那里开始,只是点击某些url,始终传递该auth标头,并将令牌包含在查询字符串或帖子中.

From there it's just hitting some url's always passing that auth header and including the token in the querystring or post.

获取您的订阅列表:www.google.com/reader/api/0/subscription/list?output=xml

Gets a list of your subscriptions: www.google.com/reader/api/0/subscription/list?output=xml

要修改订阅,这是基本网址,外加一些要执行的操作的帖子数据

To modify subscriptions this is the base url plus some post data for the action to perform

www.google.com/reader/api/0/subscription/edit?pos=0&client=$source

POST添加:s=$streams&t=$title&T=$token&ac=subscribe

POST删除:s=$stream&T=$token&ac=unsubscribe

$ stream通常是feed/$ feedurl,对于techcrunch来说是这样的,feed/http://feeds.feedburner.com/Techcrunch

The $stream is generally feed/$feedurl like this for techcrunch, feed/http:// feeds.feedburner.com/Techcrunch

对不起,由于我没有足够的代表,所以不得不修改一些网址.

Sorry had to mangle some of the urls cause i don't have enough rep yet.

这篇关于Google Reader API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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