DevCraft Документации
EnglishGuides

Shows v1.0.0

Show card, search, top list, and episode.

Show card

$show = $client->shows()->getById(showId: 1, withEpisodes: true);

withEpisodes: true asks for the episode list together with the show.

use DevCraftClub\MyShows\Filter\ShowsSearchFilter;

$filter = (new ShowsSearchFilter())->withSearch('One Piece')->withLimit(5);
$list = $client->shows()->search($filter);

Top, genres, and one episode

$top = $client->shows()->top();
$genres = $client->shows()->genres();
$episode = $client->shows()->episode(episodeId: 42);

A repeat call with the same arguments reads the file cache until MYSHOWS_CACHE_TTL expires.

На этой странице