I want to get data and also update some rows's data. this code retrive all data from table
function updateStatus(){
$url = 'https://api.parse.com/1/classes/xxxxxxx';
$appId = 'xxxxxxxxx';
$restKey = 'xxxxxxxxx';
$headers = array(
"X-Parse-Application-Id: " . $appId,
"X-Parse-REST-API-Key: " . $restKey
);
$queryParse = '{"date":"21-04-2016"}';
$rest = curl_init($url.$queryParse);
curl_setopt($rest,CURLOPT_URL,$url);
curl_setopt($rest,CURLOPT_HTTPHEADER,$headers);
curl_setopt($rest,CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($rest,CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($rest);
curl_close($rest);
return $response;
}
and query Parse also like
$queryParse = urlencode('where={"date":"21-04-2016","time":07:00 to 10:00}');
But both are not working.