forked from php-tmdb/api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f26bb3e
commit de17a90
Showing
12 changed files
with
320 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Add event subscribers to supply language and adult filters | ||
- Figure out a way to slim down the seemingly dependency on Guzzle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?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 <[email protected]> | ||
* @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); | ||
|
||
// This is optional, but if you want lots of data this is the way. | ||
$append = new \Tmdb\Model\Person\QueryParameter\AppendToResponse(array( | ||
\Tmdb\Model\Person\QueryParameter\AppendToResponse::IMAGES, | ||
\Tmdb\Model\Person\QueryParameter\AppendToResponse::CHANGES, | ||
\Tmdb\Model\Person\QueryParameter\AppendToResponse::COMBINED_CREDITS, | ||
\Tmdb\Model\Person\QueryParameter\AppendToResponse::LATEST, | ||
\Tmdb\Model\Person\QueryParameter\AppendToResponse::MOVIE_CREDITS, | ||
\Tmdb\Model\Person\QueryParameter\AppendToResponse::TV_CREDITS, | ||
\Tmdb\Model\Person\QueryParameter\AppendToResponse::POPULAR | ||
)); | ||
|
||
$repository = new \Tmdb\Repository\PersonRepository($client); | ||
$person = $repository->load(33, array($append)); | ||
|
||
var_dump($person); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?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 <[email protected]> | ||
* @copyright (c) 2013, Michael Roterman | ||
* @version 0.0.1 | ||
*/ | ||
namespace Tmdb\Model\Person\QueryParameter; | ||
|
||
use Tmdb\Model\Common\QueryParameter\AppendToResponse as BaseAppendToResponse; | ||
|
||
final class AppendToResponse extends BaseAppendToResponse { | ||
const MOVIE_CREDITS = 'movie_credits'; | ||
const TV_CREDITS = 'tv_credits'; | ||
const COMBINED_CREDITS = 'combined_credits'; | ||
const IMAGES = 'images'; | ||
const CHANGES = 'changes'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.