コード例 #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);