Journalisted API - Overview
All requests take a number of parameters. output is optional, and defaults to js.
http://journalisted.com/api/function?output=output&other_variables
The current API is still in flux and subject to change and improvement! if this is likely to cause problems for you, please let us know so we can coordinate!
Outputs
The output argument can take any of the following values:
- xml
- php. Serialized PHP, that can be turned back into useful information with the unserialize() command. Quite useful in Python as well, using PHPUnserialize.
- js. A JavaScript object. You can provide a callback function with the callback variable, and then that function will be called with the data as its argument.
- rabx. "RPC over Anything But XML".
All text is encoded as UTF-8.
Errors
Upon any sort of error, a non-zero status will be returned,
along with an error field containing a human-readable error message.
-
in XML:
<jl> <status>-1</status> <error>Too many fish</error> </jl> - in JS:
{"status":-1,"error":"Too many fish"} - in PHP and RABX: a serialised array containing
statusanderror

