mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
20 lines
635 B
PHP
20 lines
635 B
PHP
<?php
|
|
require_once dirname(__FILE__) . '/../../www/config.php';
|
|
|
|
$s = new Sites();
|
|
$site = $s->get();
|
|
|
|
if (isset($site->rottentomatokey))
|
|
{
|
|
$rt = new RottenTomato($site->rottentomatokey);
|
|
|
|
//print_r(json_decode($rt->getBoxOffice()));
|
|
//print_r(json_decode($rt->getInTheaters()));
|
|
//print_r(json_decode($rt->getOpening()));
|
|
//print_r(json_decode($rt->getUpcoming()));
|
|
//print_r(json_decode($rt->getDVDReleases()));
|
|
//print_r(json_decode($rt->getMovie("770805418")));
|
|
//print_r(json_decode($rt->getReviews("770805418")));
|
|
//print_r(json_decode($rt->getCast("770805418")));
|
|
print_r(json_decode($rt->searchMovie("moviename")));
|
|
} |