diff --git a/examples/genres/api/all.php b/examples/genres/api/all.php new file mode 100644 index 00000000..153321f4 --- /dev/null +++ b/examples/genres/api/all.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); + +$genres = $client->getGenresApi()->getGenres(); + +var_dump($genres); diff --git a/examples/genres/api/get.php b/examples/genres/api/get.php new file mode 100644 index 00000000..293d346c --- /dev/null +++ b/examples/genres/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); + +$genre = $client->getGenresApi()->getGenre(28); + +var_dump($genre); diff --git a/examples/genres/api/movies.php b/examples/genres/api/movies.php new file mode 100644 index 00000000..01202296 --- /dev/null +++ b/examples/genres/api/movies.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); + +$genres = $client->getGenresApi()->getMovies(18); + +var_dump($genres);