FEEDS


METHOD

/api/feeds/get.php

This method gets feeds from Cranked and meta data associated with it.


ENDPOINT

http://cranked_installation_url/api/feeds/get.php


PARAMETERS GET

PARAMETER DEFAULT REQUIRED NOTES
api_key null Yes API key can be retrieved from /api/auth/login.php
folder_id null No If folder_id is passed into the call, a list of feeds will return for this folder.
feed_id null No If feed_id is passed into the call, feed data will return for this feed only.

SUCCESS RESPONSE

{
   "count":2,
   "feed_items":[
      {
         "feed_id":"75",
         "feed_unread_count":"201",
         "favicon_id":"87",
         "favicon_image":";base64,AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAA..",
         "feed_title":"Hacker News 50",
         "feed_url":"http:\/\/feeds.feedburner.com\/hacker-news-feed-50",
         "site_url":"http:\/\/news.ycombinator.com",
         "use_mobilizer":"0",
         "latest_post_on":"19 hrs ago",
         "latest_post_on_unix":"1387284408",
         "time_added_unix":"1384931656",
         "time_added_relative":"Wed, Nov 20, 2013, 03:14PM"
      },
      {
         "feed_id":"62",
         "feed_unread_count":"98",
         "favicon_id":"21",
         "favicon_image":";base64,AAAEAAABAAAAGAAAEAEBAACgAAAAQAAAAABoAwAAFgAIAA..",
         "feed_title":"Daring Fireball",
         "feed_url":"http:\/\/daringfireball.net\/index.xml",
         "site_url":"http:\/\/daringfireball.net",
         "use_mobilizer":"0",
         "latest_post_on":"2 hrs ago",
         "latest_post_on_unix":"1387296002",
         "time_added_unix":"1387098600",
         "time_added_relative":"Wed, Dec 15, 2013, 05:10PM"
      }
   ]
}

ERROR RESPONSE

ERROR MESSAGE NOTES
No data passed API was called but no data were passed
API key not passed The required API key was not passed into the call
Invalid API key The API key was passed into the call but is invalid