public void GetItemIdsByFeed(string feedid, ItemListingType filter) { string sCommand; sCommand = "&s=" + feedid; switch (filter) { case ItemListingType.ALL: break; case ItemListingType.ONLYREAD: break; case ItemListingType.ONLYUNREAD: sCommand += "&xt=user/-/state/com.google/read"; break; default: break; } AnthuanUtils.Get("https://theoldreader.com/reader/api/0/stream/items/ids?output=json" + sCommand, this.m_Token, SetItemIds); }
public void GetItemIdsAll(ItemListingType filter) { string sCommand; sCommand = "&s=user/-/state/com.google/reading-list"; switch (filter) { case ItemListingType.ALL: break; case ItemListingType.ONLYREAD: sCommand = "s=user/-/state/com.google/read"; // it should be + instead of += on purpose! break; case ItemListingType.ONLYUNREAD: sCommand += "&xt=user/-/state/com.google/read"; break; default: break; } AnthuanUtils.Get("https://theoldreader.com/reader/api/0/stream/items/ids?output=json" + sCommand, this.m_Token, SetItemIds); }