From a1e54e794ce244573c6a53a0f5a627304d8e4f61 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sat, 8 Mar 2014 22:30:22 +0100 Subject: [PATCH] Adding example for find. --- examples/find/api/get.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/find/api/get.php diff --git a/examples/find/api/get.php b/examples/find/api/get.php new file mode 100644 index 00000000..c76b703a --- /dev/null +++ b/examples/find/api/get.php @@ -0,0 +1,23 @@ + + * @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);