示例#1
0
文件: movie.php 项目: 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);
示例#2
0
文件: keyword.php 项目: 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->searchKeyword('scary', $query);
var_dump($find);
示例#3
0
文件: person.php 项目: 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);
示例#4
0
文件: collection.php 项目: 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\CollectionSearchQuery();
$query->page(1);
$repository = new \Tmdb\Repository\SearchRepository($client);
$find = $repository->searchCollection('star wars', $query);
var_dump($find);
示例#5
0
文件: list.php 项目: 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);
示例#6
0
文件: tv.php 项目: 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);
示例#7
0
文件: multi.php 项目: 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);
示例#8
0
文件: company.php 项目: 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\CompanySearchQuery();
$query->page(1);
$repository = new \Tmdb\Repository\SearchRepository($client);
$find = $repository->searchCompany('warner bros', $query);
var_dump($find);