From 9bf4ea763850b2deb3c0737b48a9570bcd8c1573 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sat, 8 Mar 2014 22:48:01 +0100 Subject: [PATCH] Adding example for reviews. --- examples/reviews/api/get.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/reviews/api/get.php diff --git a/examples/reviews/api/get.php b/examples/reviews/api/get.php new file mode 100644 index 00000000..8db5e138 --- /dev/null +++ b/examples/reviews/api/get.php @@ -0,0 +1,21 @@ + + * @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); + +$review = $client->getReviewsApi()->getReview('5013bc76760ee372cb00253e'); + +var_dump($review);