Anime

class Anime

Handles anime-related operations.

Functions

Link copied to clipboard
suspend fun deleteUserAnimeListItem(animeId: Int)

Removes an anime from the user's anime list.

Link copied to clipboard
suspend fun getAnimeDetails(animeId: Int, fields: List<AnimeField>? = null): Anime

Retrieves details for a specific anime.

Link copied to clipboard
suspend fun getAnimeList(query: String? = null, limit: Int? = null, offset: Int? = null, fields: List<AnimeField>? = null): PaginatedList<Anime>

Searches for anime based on a query.

Link copied to clipboard
suspend fun getAnimeRanking(rankingType: AnimeRankingType, limit: Int? = null, offset: Int? = null, fields: List<AnimeField>? = null): PaginatedList<RankedAnime>

Retrieves anime ranking.

Link copied to clipboard
suspend fun getSeasonalAnimes(year: Int, season: Season, sort: SeasonalAnimeSort? = null, limit: Int? = null, offset: Int? = null, fields: List<AnimeField>? = null): PaginatedList<Anime>

Retrieves seasonal anime.

Link copied to clipboard
suspend fun getSuggestedAnimes(limit: Int? = null, offset: Int? = null, fields: List<AnimeField>? = null): PaginatedList<Anime>

Retrieves suggested anime for the user.

Link copied to clipboard
suspend fun getUserAnimeList(userName: String = "@me", status: UserAnimeListStatusType? = null, sortOption: UserAnimeListSortOption? = null, limit: Int? = null, offset: Int? = null): PaginatedList<UserAnimeListItem>

Retrieves the anime list of a user.

Link copied to clipboard
suspend fun updateUserAnimeListStatus(animeId: Int, status: UserAnimeListStatusType? = null, isRewatching: Boolean? = null, score: Int? = null, numWatchedEpisodes: Int? = null, priority: Int? = null, numTimesRewatched: Int? = null, rewatchValue: Int? = null, tags: List<String>? = null, comments: String? = null): UserAnimeListStatus

Updates or adds an anime to the user's anime list.