From 07e8235f6521ce272ce179e22f3cbd205a9e283c Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sun, 19 Jan 2014 00:16:14 +0100 Subject: [PATCH] Adding configuration example --- examples/configuration/model/get.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 examples/configuration/model/get.php diff --git a/examples/configuration/model/get.php b/examples/configuration/model/get.php new file mode 100644 index 00000000..410e076f --- /dev/null +++ b/examples/configuration/model/get.php @@ -0,0 +1,24 @@ + + * @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); + +$configRepository = new \Tmdb\Repository\ConfigurationRepository($client); +$config = $configRepository->load(); + +var_dump($config); \ No newline at end of file