apotropaic/parse.com-php-library — Issue #4: Creation of new object not working
Author: willsr
Created: 2012-03-06 10:00:19+00:00
State: open

When running this :

$query = ($_POST['query']) ? $_POST['query'] : $_GET['query'];

$params = array(
'className' => 'temperature',
'object' => array(
'value' => $query

)
);

$request = $parse->create($params);

I get this warning:

Warning: json_encode() expects exactly 1 parameter, 2 given in /home/corocco/public_html/parse.php on line 134
failed to get response 201, response code was: 400

and no new objects are created..

Any ideas?