function find() { header('Content-Type: text/html; charset=utf-8'); if (isset($_GET['type']) && $_GET['type'] != null && (isset($_GET['parameter']) && $_GET['parameter'] != null)) { //echo "find aperto"; explore('https://www.mashape.com/explore' . switch_type($_GET['type']) . $_GET['parameter']); } else { $data = array('Error' => 'Erorr in Query'); echo json_encode($data); } }
function find_for_name() { $array = parse('https://www.mashape.com/explore' . switch_type($_GET['type']) . $_GET['parameter']); echo json_encode($array); }