Skip to content

Commit

Permalink
Adding example for find.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Mar 8, 2014
1 parent b78538e commit a1e54e7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/find/api/get.php
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
*/
require_once '../../../vendor/autoload.php';
require_once '../../../apikey.php';

$token = new \Tmdb\ApiToken(TMDB_API_KEY);
$client = new \Tmdb\Client($token);

$find = $client->getFindApi()->find('tt0120737', array(
'external_source' => 'imdb_id'
));

var_dump($find);

0 comments on commit a1e54e7

Please sign in to comment.