Ejemplo n.º 1
0
Archivo: movie.php Proyecto: 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\Search\SearchQuery\MovieSearchQuery();
$query->page(1);
$repository = new \Tmdb\Repository\SearchRepository($client);
$find = $repository->searchMovie('batman', $query);
var_dump($find);
Ejemplo n.º 2
0
<?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\Search\SearchQuery\KeywordSearchQuery();
$query->page(1);
$repository = new \Tmdb\Repository\SearchRepository($client);
$find = $repository->searchKeyword('scary', $query);
var_dump($find);
Ejemplo n.º 3
0
Archivo: person.php Proyecto: 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\Search\SearchQuery\PersonSearchQuery();
$query->page(1);
$repository = new \Tmdb\Repository\SearchRepository($client);
$find = $repository->searchPerson('bruce lee', $query);
var_dump($find);
Ejemplo n.º 4
0
<?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\Search\SearchQuery\CollectionSearchQuery();
$query->page(1);
$repository = new \Tmdb\Repository\SearchRepository($client);
$find = $repository->searchCollection('star wars', $query);
var_dump($find);
Ejemplo n.º 5
0
Archivo: list.php Proyecto: 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\Search\SearchQuery\ListSearchQuery();
$query->page(1);
$repository = new \Tmdb\Repository\SearchRepository($client);
$find = $repository->searchList('award', $query);
var_dump($find);
Ejemplo n.º 6
0
Archivo: tv.php Proyecto: 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\Search\SearchQuery\TvSearchQuery();
$query->page(1);
$repository = new \Tmdb\Repository\SearchRepository($client);
$find = $repository->searchTv('breaking bad', $query);
var_dump($find);
Ejemplo n.º 7
0
Archivo: multi.php Proyecto: 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\Search\SearchQuery\KeywordSearchQuery();
$query->page(1);
$repository = new \Tmdb\Repository\SearchRepository($client);
$find = $repository->searchMulti('jack', $query);
var_dump($find);
Ejemplo n.º 8
0
<?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\Search\SearchQuery\CompanySearchQuery();
$query->page(1);
$repository = new \Tmdb\Repository\SearchRepository($client);
$find = $repository->searchCompany('warner bros', $query);
var_dump($find);