"401", "error_description" => "Unauthorized")));
$params = array(
"hapikey" => $_REQUEST['hapikey'],
"limit" => $_REQUEST['limit'],
);
if(isset($_REQUEST['properties'])) $params['properties'] = $_REQUEST['properties'];
if(isset($_REQUEST['associations'])) $params['associations'] = $_REQUEST['associations'];
if($_REQUEST["action"] == "getRecords") $result = getRecords($_REQUEST['object'], $params);
echo json_encode($result);
?>