Friday, 31 August 2007

Formatting of POST requests

There's an important change taking place in Mojo for anyone building gadgets and that is the format in which requests come in. Up until now, Mojo has taken an array of message and call objects with the required parameters and this has surfaced issues calling Mojo from PHP, Ruby and JavaScript. We've decided to include a new parameter called 'version' (set to 1), which will allow POSTs to come in without the message array, but placing the parameters at the top level.

We'll support both while we convert the Mojo site to use the new version=1 way, but we'll be looking to turn off version=0 soon.

No comments: