-
Notifications
You must be signed in to change notification settings - Fork 16
GetUserHistory
Bartłomiej Buchała edited this page Sep 11, 2019
·
4 revisions
Returns information about user's history with given username. This method parses item data by username from https://myanimelist.net/history/{username}
| Type | Name | Summary |
|---|---|---|
String |
username | Username. |
| Type | Name | Summary |
|---|---|---|
String |
username | Username. |
UserHistoryExtension |
filter | Option to filter history (manga or anime only). |
By default GetUserHistory returns information about updates related to both anime and manga. It is possible to filter returned entries using overload method with UserHistoryExtension enum. List of possible values:
| Value | Name | Summary |
|---|---|---|
0 |
Both | Basic extension, parse data for both anime and manga history. |
1 |
Anime | Anime extension, parses only history about anime. |
2 |
Manga | Manga extension, parses only history about manga. |
// Initialize JikanWrapper
IJikan jikan = new Jikan();
// Send request for history of user "Ervelan"
UserHistory userHistory = await jikan.GetUserHistory("Ervelan");
// Print title of each anime/manga and related incerement.
foreach (var historyEntry in userHistory.History)
{
Console.WriteLine(historyEntry.Metadata.Name + ": " + historyEntry.Increment);
}GetUserHistory request return an UserHistory object. Schema:
| Type | Name | Summary |
|---|---|---|
ICollection<HistoryEntry> |
History | Collection of user's history updates. |
Each entry in History collection is of type HistoryEntry with following schema:
| Type | Name | Summary |
|---|---|---|
Nullable<DateTime> |
Date | Date of the update. |
Int32 |
Increment | New value for watched episodes/read chapters. |
MALSubItem |
Metadata | Metadata about updated manga/anime. |
- GetAnimeAsync
- GetAnimeEpisodesAsync
- GetAnimeCharactersAsync
- GetAnimeStaffAsync
- GetAnimeForumTopicsAsync
- GetAnimeMoreInfoAsync
- GetAnimeNewsAsync
- GetAnimePicturesAsync
- GetAnimeRecommendationsAsync
- GetAnimeReviewsAsync
- GetAnimeStatisticsAsync
- GetAnimeUserUpdatesAsync
- GetAnimeVideosAsync
- GetMangaAsync
- GetMangaCharactersAsync
- GetMangaForumTopicsAsync
- GetMangaMoreInfoAsync
- GetMangaNewsAsync
- GetMangaPicturesAsync
- GetMangaRecommendationsAsync
- GetMangaReviews
- GetMangaStatistics
- GetMangaUserUpdates
- Jikan
- BaseJikanRequest
- Anime
- AnimeCharactersStaff
- AnimeEpisodes
- AnimeGenre
- AnimeNews
- AnimePictures
- AnimeReviews
- AnimeStats
- AnimeTop
- AnimeUserUpdates
- AnimeVideos
- Character
- CharacterPictures
- CharactersTop
- Club
- ClubMembers
- ForumTopics
- Magazine
- Manga
- MangaCharacters
- MangaGenre
- MangaNews
- MangaPictures
- MangaReviews
- MangaStats
- MangaTop
- MangaUserUpdates
- MoreInfo
- PeopleTop
- Person
- Producer
- Recommendations
- Schedule
- Season
- SeasonArchives
- StatusMetadata
- UserAnimeList
- UserFriends
- UserHistory
- UserMangaList
- UserProfile
- AnimeEpisode
- AnimeListEntry
- AnimeReview
- AnimeReviewer
- AnimeReviewScores
- AnimeStaffPosition
- AnimeSubEntry
- AnimeTopEntry
- AnimeUserUpdate
- CharacterEntry
- CharacterTopEntry
- ClubMember
- EpisodeVideo
- ForumPostSnippet
- Friend
- ForumTopic
- HistoryEntry
- Licensor
- MALImageSubItem
- MALSubItem
- MangaListEntry
- MangaReview
- MangaReviewer
- MangaReviewScores
- MangaSubEntry
- MangaTopEntry
- MangaUserUpdate
- News
- PersonTopEntry
- Picture
- PromoVideo
- PublishedManga
- Recommendation
- Review
- Reviewer
- RelatedAnime
- RelatedManga
- ScoringStatEntry
- ScoringStats
- SeasonArchive
- StaffPositionEntry
- TimePeriod
- UserAnimeStatistics
- UserFavoritesSection
- UserFavoritesSection
- UserUpdate
- VoiceActingRole
- VoiceActorEntry
- AnimeSearchConfig
- AnimeSearchEntry
- AnimeSearchResult
- CharacterSearchEntry
- CharacterSearchResult
- MangaSearchConfig
- MangaSearchEntry
- MangaSearchResult
- PersonSearchEntry
- PersonSearchResult
- AgeRating
- Status
- AnimeExtension
- AnimeGenreSearch
- AnimeType
- CharacterExtension
- ClubExtensions
- MangaExtension
- MangaGenreSearch
- MangaType
- PersonExtension
- ScheduledDay
- SeasonExtension
- Seasons
- TopAnimeExtension
- TopMangaExtension
- UserAnimeListExtension
- UserExtension
- UserHistoryExtension
- UserMangaListExtension