From 617e4740eac6fc44bdf6009ce2089a865de0e83b Mon Sep 17 00:00:00 2001 From: Nick Bartkowiak Date: Wed, 19 Dec 2012 08:53:00 -0600 Subject: [PATCH] Updated the README with section based examples. --- README.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/README.md b/README.md index 5634a0d..c5e8059 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,56 @@ Examples $client = $plex->getClient('zoe'); + // Library + $onDeck = $server->getLibrary()->getOnDeckItems(); + $recentlyAddedItems = $server->getLibrary()->getRecentlyAddedItems(); + $allSections = $server->getLibrary()->getSections(); + $movieSection = $server->getLibrary()->getSectionByKey(1); + $showSection = $server->getLibrary()->getSectionByKey(4); + $artistSection = $server->getLibrary()->getSectionByKey(5); + $photoSection = $server->getLibrary()->getSectionByKey(6); + + // Show Section + $allShows = $showSection->getAllShows(); + $unwatchedShows = $showSection->getUnwatchedShows(); + $recentlyAiredEpisodes = $showSection->getRecentlyAiredEpisodes(); + $recentlyAddedEpisodes = $showSection->getRecentlyAddedEpisodes(); + $recentlyViewedEpisodes = $showSection->getRecentlyViewedEpisodes(); + $onDeckEpisodes = $showSection->getOnDeckEpisodes(); + $collections = $showSection->getCollections(); + $showsByCollection = $showSection->getShowsByCollection(13205); + $showsByFirstCharacter = $showSection->getShowsByFirstCharacter('Q'); + $genres = $showSection->getGenres(); + $showsByGenre = $showSection->getShowsByGenre(8196); + $showsByYear = $showSection->getShowsByYear(1983); + $showsByContentRating = $showSection->getShowsByContentRating('TV-MA'); + + // Movie Section + $allMovies = $movieSection->getAllMovies(); + $unwatchedMovies = $movieSection->getUnwatchedMovies(); + $recentlyReleasedMovies = $movieSection->getRecentlyReleasedMovies(); + $recentlyAddedMovies = $movieSection->getRecentlyAddedMovies(); + $recentlyViewedMovies = $movieSection->getRecentlyViewedMovies(); + $onDeckMovies = $movieSection->getOnDeckMovies(); + $collections = $movieSection->getCollections(); + $moviesByCollection = $movieSection->getMoviesByCollection(13206); + $moviesByGenre = $movieSection->getMoviesByGenre(1252); + $moviesByYear = $movieSection->getMoviesByYear(1983); + $moviesByDecade = $movieSection->getMoviesByDecade(1980); + $directors = $movieSection->getDirectors(); + $moviesByDirector = $movieSection->getMoviesByDirector(357); + $actors = $movieSection->getActors(); + $moviesByContentRating = $movieSection->getMoviesByContentRating('R'); + $moviesByResolution = $movieSection->getMoviesByResolution('1080'); + $moviesByFirstCharacter = $movieSection->getMoviesByFirstCharacter('Q'); + + // Artist Section + $allArtists = $artistSection->getAllArtists(); + $allAlbums = $artistSection->getAllAlbums(); + $genres = $artistSection->getGenres(); + $artistsByGenre = $artistSection->getArtistsByGenre(11644); + $albumsByDecade = $artistSection->getAlbumsByDecade(1980); + $albumsByYear = $artistSection->getAlbumsByYear(1983); + $collections = $artistSection->getCollections() + $artistsByCollection = $artistSection->getMoviesByCollection(13207); + $recentlyAddedAlbums = $artistSection->getRecentlyAddedAlbums();