Exemplo n.º 1
0
        $companies = $hulu->getCompanies($_GET);
        exit(print_r($companies));
        break;
    case 'getGenres':
        // Remove method from GET so it can be passed to the library
        unset($_GET['method']);
        // Call the method!
        $genres = $hulu->getGenres($_GET);
        exit(print_r($genres));
        break;
    case 'getShows':
        // Remove method from GET so it can be passed to the library
        unset($_GET['method']);
        // Call the method!
        $shows = $hulu->getShows($_GET);
        exit(print_r($shows));
        break;
    case 'getVideos':
        // Remove method from GET so it can be passed to the library
        unset($_GET['method']);
        // Call the method!
        $videos = $hulu->getVideos($_GET);
        exit(print_r($videos));
        break;
    case 'search':
        $results = $hulu->search($_GET['query'], $_GET['limit'], $_GET['page']);
        exit(print_r($results));
        break;
    default:
        // ...
}