开发者

Google reader api mark an item as Unread

开发者 https://www.devze.com 2023-03-25 00:14 出处:网络
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?

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开发者_JS百科 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];


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

精彩评论

暂无评论...
验证码 换一张
取 消