]> git.wh0rd.org - tt-rss.git/commit
Add new API method: `getFeedStats'
authorPedro Silva <psilva+git@pedrosilva.pt>
Thu, 11 Apr 2013 15:25:37 +0000 (16:25 +0100)
committerPedro Silva <psilva+git@pedrosilva.pt>
Thu, 11 Apr 2013 15:25:37 +0000 (16:25 +0100)
commit0192ffe5a5f8254d723cf46e4bda839220191c2c
tree339b55be1c0d4703f5ab15160dce145a35a59887
parent063ac6135304223d6667401936e3a3931522b07c
Add new API method: `getFeedStats'

`getFeedStats' calls the new static function `api_get_feed_stats' to
return an array of real feeds of the following form:

    [{
       "first" : 1127,
       "unread" : 873,
       "last" : 15460,
       "title" : "Some feed",
       "id" : 31,
       "total" : 1513
    }]

where "first", "last", "total" are the first, last and total number of
articles in the feed.

This adds the ability to nntp-oriented clients to efficiently retrieve
an "active file" without having to resort to `getHeadlines(limit=-1)'
classes/api.php