Google Reader API - feed/[FEEDURL]/ 返回为“未找到”

发布于 2024-08-31 21:18:24 字数 1296 浏览 5 评论 0原文

我订阅了一个提要,当我尝试使用该 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;
}

http://www.google.com/reader/api/ 0/stream/contents/feed/http://www.peopleofwalmart.com/?feed=rss2?ot=1&r=n&xt=user/-/state/com.google/read&n=6&ck =1273449028&client=testClient

如果您完全精通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;
}

http://www.google.com/reader/api/0/stream/contents/feed/http://www.peopleofwalmart.com/?feed=rss2?ot=1&r=n&xt=user/-/state/com.google/read&n=6&ck=1273449028&client=testClient

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月蹉跎了容颜 2024-09-07 21:18:24

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文