Google reader api 将项目标记为未读

发布于 2024-11-27 15:08:23 字数 528 浏览 1 评论 0原文

使用第一个网址,我可以将帖子标记为已读,但第二个网址不起作用。这是将项目标记为未读的正确请求吗?

//THIS ONE WORKS AND I CAN MARK MY ITEM AS READ
NSString *url=[NSString stringWithFormat:@"https://www.google.com/reader/api/0/edit-tag?a=user/-/state/com.google/read&i=%@&T=%@", entry.identifier, token];

//THIS ONE DOESN'T WORKS AND I CAN'T MARK MY ITEM AS UN-READ
NSString *url=[NSString stringWithFormat:@"https://www.google.com/reader/api/0/edit-tag?a=user/-/state/com.google/kept-unread&i=%@&T=%@", entry.identifier, token];

With the first one url I can mark a post as read but the second one doesn't work. Is this the correct request to mark an item as unread?

//THIS ONE WORKS AND I CAN MARK MY ITEM AS READ
NSString *url=[NSString stringWithFormat:@"https://www.google.com/reader/api/0/edit-tag?a=user/-/state/com.google/read&i=%@&T=%@", entry.identifier, token];

//THIS ONE DOESN'T WORKS AND I CAN'T MARK MY ITEM AS UN-READ
NSString *url=[NSString stringWithFormat:@"https://www.google.com/reader/api/0/edit-tag?a=user/-/state/com.google/kept-unread&i=%@&T=%@", entry.identifier, token];

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

梦过后 2024-12-04 15:08:23

除了添加 kept-unread 标签之外,您还需要删除 read 标签(使用 r 参数)。该请求如下所示:

NSString *url=[NSString stringWithFormat:@"https://www.google.com/reader/api/0/edit-tag?a=user/-/state/com.google/kept-unread&r=user/-/state/com.google/read&i=%@&T=%@", entry.identifier, token];

In addition to adding the kept-unread tag, you also need to remove the read one (with the r parameter). The request would look like:

NSString *url=[NSString stringWithFormat:@"https://www.google.com/reader/api/0/edit-tag?a=user/-/state/com.google/kept-unread&r=user/-/state/com.google/read&i=%@&T=%@", entry.identifier, token];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文