From b95a318aece9d6a4723a3375c4da698351cf7420 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sat, 8 Mar 2014 22:35:52 +0100 Subject: [PATCH] Adding and updating examples for lists. --- examples/lists/api/get.php | 24 +++++++++++++++++++ .../{create_list.php => list_create.php} | 0 .../model/{remove.php => list_delete.php} | 0 3 files changed, 24 insertions(+) create mode 100644 examples/lists/api/get.php rename examples/lists/model/{create_list.php => list_create.php} (100%) rename examples/lists/model/{remove.php => list_delete.php} (100%) diff --git a/examples/lists/api/get.php b/examples/lists/api/get.php new file mode 100644 index 00000000..45763d3c --- /dev/null +++ b/examples/lists/api/get.php @@ -0,0 +1,24 @@ + + * @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); + +$sessionToken = new \Tmdb\SessionToken(TMDB_SESSION_TOKEN); +$client->setSessionToken($sessionToken); + +$list = $client->getListsApi()->getList('509ec17b19c2950a0600050d'); + +var_dump($list); diff --git a/examples/lists/model/create_list.php b/examples/lists/model/list_create.php similarity index 100% rename from examples/lists/model/create_list.php rename to examples/lists/model/list_create.php diff --git a/examples/lists/model/remove.php b/examples/lists/model/list_delete.php similarity index 100% rename from examples/lists/model/remove.php rename to examples/lists/model/list_delete.php