Skip to content

Commit

Permalink
Adding example for the Find API
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Feb 8, 2014
1 parent 39cb3f6 commit 74c2695
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PROGRESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The states for now defined as;
| Companies | Done |
| Credits | **TODO** _added to tmdb recently_ |
| Discover | Done |
| Find | Review |
| Find | Done |
| Genres | Done |
| Jobs | Done |
| Keywords | Review |
Expand Down
22 changes: 22 additions & 0 deletions examples/find/model/get.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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);

$repository = new \Tmdb\Repository\FindRepository($client);
$find = $repository->find('tt0120737', array('external_source' => 'imdb_id'));

var_dump($find);

0 comments on commit 74c2695

Please sign in to comment.