From b5064cae9b199d7c3ce2831291099c0ffa34f956 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sat, 8 Mar 2014 22:27:35 +0100 Subject: [PATCH] Adding example for configuration. --- examples/configuration/api/get.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/configuration/api/get.php diff --git a/examples/configuration/api/get.php b/examples/configuration/api/get.php new file mode 100644 index 00000000..0defceee --- /dev/null +++ b/examples/configuration/api/get.php @@ -0,0 +1,23 @@ + + * @copyright (c) 2013, Michael Roterman + * @version 0.0.1 + */ +header('Content-Type: text/html; charset=utf-8'); + +require_once '../../../vendor/autoload.php'; +require_once '../../../apikey.php'; + +$token = new \Tmdb\ApiToken(TMDB_API_KEY); +$client = new \Tmdb\Client($token); + +$configuration = $client->getConfigurationApi()->getConfiguration(); + +var_dump($configuration);