Feed

RSS and JSON feed feature.

5 stars out of 5

3 0 0 0 0
  • Author Taufik Nurrohman
  • Maintainer 1
  • Member
  • Version 3.0.0
Table of Contents
  1. Usage
  2. Parameter

Usage

  • Normal view → ./path/to/page
  • JSON view → ./path/to/page/feed.json
  • RSS view → ./path/to/page/feed.xml

Parameter

Some URL parameters are available to manipulate the feed results, so that you can allow third party applications to fetch your data:

  • chunk → Determine how many pages to show per request. Default is 25.
  • deep → Determine how many folder path to recurse. Default is 0.
  • fire → JavaScript callback function name that bounds to the window object.
  • part → Current page offset. Default is 1.
  • query → Determine the search query to filter the feed results.
  • sort → Default is [-1,"time"] to sort pages descending by the time data.

Example API usage:

<script>
function render(json) {
    console.log(json);
}
</script>
<script src="http://127.0.0.1/article/feed.json?chunk=5&amp;fire=render"></script>

0 Comments

No comments yet.