/// <summary> /// Adds manga to specific user's list. /// </summary> /// <param name="addedManga">The new added manga to the list.</param> /// <param name="mangaId">The ID of the new added manga.</param> /// <returns>A string represnting the state of adding "Created" or detailed error message.</returns> public string AddManga(MangaEntry addedManga, int mangaId) { m_api.CheckAuth(); return(m_api.PostSerializedObject(addedManga, string.Format(MAL.url_addManga, mangaId))); }
/// <summary> /// Searches myanimelist for anime, Auth required. /// </summary> /// <param name="searchQuery">The query to search for.</param> /// <returns>Returns an instance of AnimeSearchResult on success.</returns> public AnimeSearchResult SearchForAnime(string searchQuery) { m_api.CheckAuth(); return(m_api.GetDeserializedObject <AnimeSearchResult>(string.Format(MAL.url_search, RetrieveType.Anime.ToString().ToLower(), searchQuery))); }
/// <summary> /// Adds anime entry to specific user's list. /// </summary> /// <param name="addedAnime">The anime entry you want to add to the list.</param> /// <param name="animeId">The ID of the new added anime.</param> /// <returns>A string represnting the state of adding "Created" or detailed error message.</returns> public string AddAnime(AnimeEntry addedAnime, int animeId) { m_api.CheckAuth(); return(m_api.PostSerializedObject(addedAnime, string.Format(MAL.url_addAnime, animeId))); }