Files
newznab-tmux/misc/testing/rottentom.php
T
2016-07-14 08:47:39 +02:00

25 lines
686 B
PHP

<?php
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'bootstrap.php');
use nntmux\db\Settings;
use nntmux\RottenTomato;
$s = new Settings();
$rtkey = $s->getSetting('rottentomatokey');
$rt = new RottenTomato($rtkey);
if (isset($rtkey) && $rtkey !='')
{
$rt = new RottenTomato($rtkey);
//print_r($rt->getMoviesBoxOffice());
//print_r($rt->getMoviesInTheaters());
//print_r($rt->getOpeningMovies());
//print_r($rt->getUpcomingMovies());
//print_r($rt->getNewDvdReleasess());
//print_r($rt->getMovieInfo("770805418"));
//print_r($rt->getMovieReviews("770805418"));
//print_r($rt->getMovieCast("770805418"));
print_r($rt->movieSearch("moviename"));
}