Demo: Get collection details

Type a collection id in the form below to test the code to get collection details:

$tmdb  = Factory::create()->getTmdb('your_api_key');

$item  = new Item($tmdb);
$infos = $item->getCollection(8091, array('language' => 'en-EN'));

echo '<h3>Colleciton details</h3>';
echo '<ul>';
echo '<li><b>Name: </b>'.$infos->getName().'</li>';
echo '<li><b>Id: </b>'.$infos->getId().'</li>';
echo '</ul>';

See Collection reference page for availables methods.

Result