"Foo",8 => "Bar"))); # <--- The function to execute, and parameters # Sign the query using the private key $sign = hash("sha256", $private_key . $query); # Make the request. $results = file_get_contents("http://localhost/resourcespace/api/?" . $query . "&sign=" . $sign); # Output the JSON echo "
";
echo escape($results);