使用第一个网址,我可以将帖子标记为已读,但第二个网址无效。这是将项目标记为未读的正确请求吗?
//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];
答案 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];