From: Andrew Dolgov Date: Sun, 18 Jul 2010 20:00:37 +0000 (+0400) Subject: api: add catchupFeed X-Git-Tag: 1.4.3-proper~18 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ca75c2e2fd00ff81d6a74fe144b974e79addb8af;p=tt-rss.git api: add catchupFeed --- diff --git a/api/index.php b/api/index.php index 1faf9a9f..c0bc7996 100644 --- a/api/index.php +++ b/api/index.php @@ -388,6 +388,16 @@ break; + case "catchupFeed": + $feed_id = db_escape_string($_REQUEST["feed_id"]); + $is_cat = db_escape_string($_REQUEST["category"]); + + catchup_feed($link, $feed, $is_cat); + + print json_encode(array("status" => "OK")); + + break; + case "getPref": $pref_name = db_escape_string($_REQUEST["pref_name"]); print json_encode(array("value" => get_pref($link, $pref_name)));