Feed: User

RSS and JSON feed feature for user data.

0 stars out of 5

0 0 0 0 0
  • Author Taufik Nurrohman
  • Maintainer 1
  • Member
  • Version 1.0.0
Table of Contents
  1. Usage
    1. Item View
    2. Items View
  2. Parameter

This extension exists thanks to the completion of 5 USD bounty, which has been financed by the following people:

NameDonation
@yuliakbard6.44 USD 1

Usage

Item View

  • Normal view → ./route/to/user/user-name
  • JSON view → ./route/to/user/user-name/feed.json
  • RSS view → ./route/to/user/user-name/feed.xml

Items View

  • Normal view → ./route/to/user
  • JSON view → ./route/to/user/feed.json
  • RSS view → ./route/to/user/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 users to show per request. Default is 25.
  • 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 users descending by the time data.

Example API usage:

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

  1. About 100,000 IDR since this extension was created. 

0 Comments

No comments yet.