Skip to content

GetUserFriends

Bartłomiej Buchała edited this page Dec 6, 2018 · 1 revision

GetUserHistory

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

Parameters

GetUserFriends(String username)

Type Name Summary
String username Username.

GetUserFriends(String username, Int32 page)

Type Name Summary
String username Username.
Int32 page Index of the page (page size = 100).

Usage

// Initialize JikanWrapper
IJikan jikan = new Jikan(true);

// Send request for friend list of user "Ervelan"
UserFriends friends = await jikan.GetUserFriends("Ervelan");

// Print each friend username with their last online activity date.
foreach (var friend in friends.Friends)
{
	Console.WriteLine(friend.Username + " last seen online " + friend.LastOnline);
}

// Send request for friend list of user "batsling1234" on positions 101-200 (sorted by most recent online activity).
friends = await jikan.GetUserFriends("batsling1234", 2);

UserFriends Properties

GetUserFriends request return an UserFriends object. Schema:

Type Name Summary
ICollection<Friend> Friends Collection of user's friends basic information

Each entry in Friends collection is of type Friend with following schema:

Type Name Summary
Nullable<DateTime> FriendsSince Timestamp of friend addidition.
String ImageURL Friend's image URL.
Nullable<DateTime> LastOnline Timestamp of friend's last online activity.
String Url Url to friend page.
String Username Friend's username.

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