Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
Updated the README with section based examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbart committed Dec 19, 2012
1 parent 06e39c3 commit 617e474
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 617e474

Please sign in to comment.