Example #1
0
File: movies.php Project: n10ty/api
<?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 <*****@*****.**>
 * @copyright (c) 2013, Michael Roterman
 * @version 0.0.1
 */
require_once '../../../vendor/autoload.php';
require_once '../../../apikey.php';
$token = new \Tmdb\ApiToken(TMDB_API_KEY);
$client = new \Tmdb\Client($token);
$query = new \Tmdb\Model\Query\ChangesQuery();
$from = new \DateTime('01-01-2014');
$to = new \DateTime('02-01-2014');
$query->page(1)->from($from)->to($to);
$repository = new \Tmdb\Repository\ChangesRepository($client);
$response = $repository->getMovieChanges($query);
var_dump($response);
Example #2
0
File: people.php Project: n10ty/api
<?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 <*****@*****.**>
 * @copyright (c) 2013, Michael Roterman
 * @version 0.0.1
 */
require_once '../../../vendor/autoload.php';
require_once '../../../apikey.php';
$token = new \Tmdb\ApiToken(TMDB_API_KEY);
$client = new \Tmdb\Client($token);
$query = new \Tmdb\Model\Query\ChangesQuery();
$from = new \DateTime('14-01-2014');
$to = new \DateTime('21-01-2014');
$query->page(1)->from($from)->to($to);
$repository = new \Tmdb\Repository\ChangesRepository($client);
$response = $repository->getPeopleChanges($query);
var_dump($response);
Example #3
0
File: tv.php Project: n10ty/api
<?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 <*****@*****.**>
 * @copyright (c) 2013, Michael Roterman
 * @version 0.0.1
 */
require_once '../../../vendor/autoload.php';
require_once '../../../apikey.php';
$token = new \Tmdb\ApiToken(TMDB_API_KEY);
$client = new \Tmdb\Client($token);
$query = new \Tmdb\Model\Query\ChangesQuery();
$from = new \DateTime('14-01-2014');
$to = new \DateTime('21-01-2014');
$query->page(1)->from($from)->to($to);
$repository = new \Tmdb\Repository\ChangesRepository($client);
$response = $repository->getTvChanges($query);
var_dump($response);