diff --git a/examples/account/api/lists.php b/examples/account/api/lists.php new file mode 100644 index 00000000..318fcbcf --- /dev/null +++ b/examples/account/api/lists.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); + +$lists = $client->getAccountApi()->getLists(TMDB_ACCOUNT_ID); + +var_dump($lists); \ No newline at end of file diff --git a/lib/Tmdb/Api/Account.php b/lib/Tmdb/Api/Account.php index a325495a..bd34ba1b 100644 --- a/lib/Tmdb/Api/Account.php +++ b/lib/Tmdb/Api/Account.php @@ -32,12 +32,14 @@ public function getAccount(array $parameters = array(), array $headers = array() /** * Get the lists that you have created and marked as a favorite. * - * @throws NotImplementedException + * @param integer $id + * @param array $parameters + * @param array $headers * @return mixed */ - public function getLists() + public function getLists($id, array $parameters = array(), array $headers = array()) { - throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.'); + return $this->get('account/' . $id . '/lists', $parameters, $headers); } /**