Google Reader API - feed/[FEEDURL]/ 返回为“未找到”
我订阅了一个提要,当我尝试使用该 API 时,该提要总是显示为“未找到”。我返回一个字典数组,其中包含 3 个对象。列表中的第一个代表用户本人,如下所示:
{
FeedID = "user/MY_UNIQUE_NUMBER/state/com.google/reading-list";
Timestamp = 1273448807271463;
Unread = 59;
}
未读计数非常重要。我的客户端依赖于在刷新之前从 Google 下载 59 个项目。如果 Feed 无法正确下载,计数就会关闭,客户端也不会更新。
工作 Feed 的示例如下:
{
FeedID = "feed/http://arstechnica.com/index.rssx";
Timestamp = 1273447158484528;
Unread = 13;
}
FeedID 值与特殊格式的 URL 字符串相结合,并返回文章列表。上面的例子运行良好。但是,以下提要始终在 Google 上返回 NOT FOUND,并且如果我将 URL 逐字粘贴到浏览器中,它永远不会出现。
请参阅此处:
{
FeedID = "feed/http://www.peopleofwalmart.com/?feed=rss2";
Timestamp = 1273424138183529;
Unread = 6;
}
如果您完全精通API,可以帮我吗?就像我说的,由于当我搜索该提要时 Google 总是说“未找到”,因此我的下载计数减少了 N 篇文章,并且不会更新。老实说,我宁愿不绕过它。
谢谢!
There is one feed I'm subscribed to which always turns up as NOT FOUND when I try to use the API. I return an array of Dictionaries, containing 3 objects. The first in the list represents the user himself, like so:
{
FeedID = "user/MY_UNIQUE_NUMBER/state/com.google/reading-list";
Timestamp = 1273448807271463;
Unread = 59;
}
The Unread count is very important. My client depends on downloading 59 items from Google before it refreshes. If a feed doesn't download properly, the count is off and the client won't update.
An example of a working Feed is here:
{
FeedID = "feed/http://arstechnica.com/index.rssx";
Timestamp = 1273447158484528;
Unread = 13;
}
The FeedID value combines with a specially formatted URL string and gives back a list of articles. The above example works fine. However, the following feed always returns NOT FOUND on Google, and if I paste the URL verbatim into a browser, it never turns up.
See here:
{
FeedID = "feed/http://www.peopleofwalmart.com/?feed=rss2";
Timestamp = 1273424138183529;
Unread = 6;
}
If you are at all proficient with the API, can you please help me? Like I said, since Google always says NOT FOUND when I search for that feed, my download count is off by N articles and won't update. I would rather not hack around it, honestly.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
URL 字符串未正确转义,并且“?”基本提要 URL 的中间会使 Google Reader 感到困惑。我必须转义转动 ? 的字符串。到 %3F。
The URL string wasn't escaped properly, and the "?" in the middle of the base feed URL confuses Google Reader. I had to escape the string which turned the ? to %3F.