forked from php-tmdb/api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget.php
More file actions
25 lines (20 loc) · 640 Bytes
/
get.php
File metadata and controls
25 lines (20 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* This file is part of the Tmdb PHP API created by Michael Roterman.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package Tmdb
* @author Michael Roterman <michael@wtfz.net>
* @copyright (c) 2013, Michael Roterman
* @version 4.0.0
*/
use Tmdb\Repository\MovieRepository;
require_once '../../../vendor/autoload.php';
require_once '../../apikey.php';
/** @var Tmdb\Client $client **/
$client = require_once('../../setup-client.php');
$repository = new MovieRepository($client);
$movie = $repository->load(87421);
var_dump($movie);