-
Notifications
You must be signed in to change notification settings - Fork 15
GetUserFriends
Bartłomiej Buchała edited this page Dec 6, 2018
·
1 revision
Returns information about user's friendswith given username. This method parses item data by username from https://myanimelist.net/profile/{username}/friends
Type | Name | Summary |
---|---|---|
String |
username | Username. |
Type | Name | Summary |
---|---|---|
String |
username | Username. |
Int32 |
page | Index of the page (page size = 100). |
// 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);
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. |
- 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