Skip to content

GetUserHistory

Bartłomiej Buchała edited this page Sep 11, 2019 · 4 revisions

GetUserHistory

Returns information about user's history with given username. This method parses item data by username from https://myanimelist.net/history/{username}

Parameters

GetUserHistory(String username)

Type Name Summary
String username Username.

GetUserHistory(String username, UserHistoryExtension filter)

Type Name Summary
String username Username.
UserHistoryExtension filter Option to filter history (manga or anime only).

Filtering history

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.

Usage

// 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);
}

UserHistory Properties

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.

General information

Home Page

Getting started

Using own instance of Jikan

Migrating to version 2.0

Rate limiting

Winforms issue

Methods

Anime

Characters

Club

Manga

People

Rankings

Season

Search

Users

Other

Jikan Metadata

Class Schema

Main Classes

Secondary Classes

Search related classes

Enumerations Schema

Clone this wiki locally