Google阅读器API将商品标记为未读

时间:2011-08-04 09:33:09

标签: gdata gdata-api google-reader

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

//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];

1 个答案:

答案 0 :(得分:2)

除了添加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];