Demo: Search TV show

Type a TV show title in the form below to test the code to search a TV show:

$tmdb      = Factory::create()->getTmdb('your_api_key');
$search    = new Search($tmdb);
$responses = $search->tvshow('game of thrones');

foreach ($responses as $response)
{
    echo '<li><b>Title:</b> '.$response->getTitle();
        echo '<ul>';
        echo '<li><b>Id:</b> '.$response->getId().'</li>';
        echo '<li><b>Overview:</b> '.$response->getOverview().'</li>';
        echo '<li><b>Original Title:</b> '.$response->getOriginalTitle().'</li>';
        echo '<li><b>Release Date:</b> '.$response->getReleaseDate().'</li>';
        echo '</ul>';
    echo '</li>';
}

See Results\TVShow reference page for availables methods.

Result