This document is for review only. The API it describes has been deployed, but is not quite ready for testing. Real Soon Now. 
The JSON API makes it possible to program anything the my.reallysimple.org website does in JavaScript or in other JSON-compatible programming languages. It also makes it possible to create compatible servers running in other environments. The API provides glue that connects the data with the UI. 
Here are the basic concepts of the API. 
1. There are users. Users have feeds and feeds have posts. 
2. The username and password are specified through HTTP basic authentication. 
3. Each endpoint returns a JSON value. If there's an error, two values are returned: error, a string that explains the error, and code, a number that identifies the class of error. The possible values for code are: 401, unauthorized; 404, not found; and 500, internal error. 
4. For my server, the address of each endpoint begins with http://my.reallysimple.org/api/. On other servers the URL will be something different. 
Here's a list of each of the endpoints and an explanation of what it does and what is returned. 
feedList 
newPost 
editPost 
deletePost 
buildFeed 
newFeed 
getFeedPrefs 
setFeedPrefs 
getFeedHistory 
General notes 
Changes 
1/17/11 by DW -- on getFeedPrefs, it now returns a "cloud" value that reflects the cloud prefs for the feed. Assumes the protocol is http-post. The cloud is formed into a URL, for example: http://rpc.rsscloud.org:5337/rsscloud/pleaseNotify 
|
|