Skip to content

v4.0.0

Compare
Choose a tag to compare
@irfan-dahir irfan-dahir released this 23 Oct 11:56
· 82 commits to master since this release

What's Changed

Full Changelog: v3.3.2...v4.0.0

Major Version Release

This is because the Review API has been completely revamped and is no longer backwards compatible.


Reviews

$data = $jikan->getReviews(
    new \Jikan\Request\Reviews\ReviewsRequest(
        \Jikan\Helper\Constants::MANGA, // type
        1, // page
        \Jikan\Helper\Constants::REVIEWS_SORT_MOST_VOTED, // sort
        true, // show spoilers
        true // show preliminary
    )
);

Parses: https://myanimelist.net/reviews.php?t=manga&spoiler=on&preliminary=on&sort=mostvoted

Anime/Manga Reviews

$data = $jikan->getAnimeReviews(
    new \Jikan\Request\Anime\AnimeReviewsRequest(
        1, // MAL ID
        1, // page
        \Jikan\Helper\Constants::REVIEWS_SORT_MOST_VOTED, //sort
        true, // show spoilers
        false // show preliminary
        )
);

Parses: https://myanimelist.net/anime/1/Cowboy_Bebop/reviews?sort=mostvoted&spoiler=on&preliminary=off

User Reviews

$data = $jikan->getUserReviews(
    new \Jikan\Request\User\UserReviewsRequest('Stark700', 1) // username and page
);

Parses: https://myanimelist.net/profile/Stark700/reviews