From f7ea43339130dec7f88932a9649de1712ad51d3e Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sat, 8 Mar 2014 22:18:41 +0100 Subject: [PATCH] Adding examples for changes. --- examples/changes/api/movies.php | 25 +++++++++++++++++++++++++ examples/changes/api/people.php | 25 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 examples/changes/api/movies.php create mode 100644 examples/changes/api/people.php diff --git a/examples/changes/api/movies.php b/examples/changes/api/movies.php new file mode 100644 index 00000000..52e9cd28 --- /dev/null +++ b/examples/changes/api/movies.php @@ -0,0 +1,25 @@ + + * @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); + +$movieChanges = $client->getChangesApi()->getMovieChanges(array( + 'page' => 1, + 'from' => '01-01-2012', + 'to' => '08-01-2012' +)); + +var_dump($movieChanges); diff --git a/examples/changes/api/people.php b/examples/changes/api/people.php new file mode 100644 index 00000000..beb744ab --- /dev/null +++ b/examples/changes/api/people.php @@ -0,0 +1,25 @@ + + * @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); + +$personChanges = $client->getChangesApi()->getPersonChanges(array( + 'page' => 1, + 'from' => '01-01-2012', + 'to' => '08-01-2012' +)); + +var_dump($personChanges);