I am messing arround with the REST API of Parse and in my opinion the Documentation is lacking.
What I want to make a query and get all rows of that particular table where username1 is either in the receiver or in the sender field "and" username2 is either in the receiver or in the sender field.
Instead I am getting username1 "or" username2 which is clearly wrong because I also get rows with other usernames.
Here is my code and what I send to Parse
$aWhere = array('$or' => array(
array('receiver' => $sUsername1),
array('sender' => $sUsername1)
),
'$or' => array(
array('receiver' => $sUsername2),
array'sender' => $sUsername2)
)
);
$url = 'https://api.parse.com/1/classes/test?where='.json_encode($aWhere);
url then gets passed into CURL