コード例 #1
0
ファイル: utils.php プロジェクト: giottocagna/Mashape
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);
    }
}
コード例 #2
0
ファイル: utils.php プロジェクト: rokity/mashape-api
function find_for_name()
{
    $array = parse('https://www.mashape.com/explore' . switch_type($_GET['type']) . $_GET['parameter']);
    echo json_encode($array);
}