aboutsummaryrefslogtreecommitdiff
path: root/user/anime/animelist.go
diff options
context:
space:
mode:
Diffstat (limited to 'user/anime/animelist.go')
-rw-r--r--user/anime/animelist.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/user/anime/animelist.go b/user/anime/animelist.go
index 2099204..7fe81b8 100644
--- a/user/anime/animelist.go
+++ b/user/anime/animelist.go
@@ -28,6 +28,14 @@ import (
const BASE_URL string = "https://api.myanimelist.net/v2"
const maxListLimit int = 1000
+// Delete an anime from user's anime list
+func (c AnimeListClient)DeleteAnime(id int) string {
+ endpoint := fmt.Sprintf("%s/anime/%d/my_list_status", BASE_URL, id)
+ /* Returns 200 if anime successfully deleted
+ * Alternatively returns 404 if anime not in user's anime list */
+ return c.requestHandler(endpoint, "DELETE")
+}
+
// Get authenticated user's anime list
func (c AnimeListClient) GetAnimeList(user, status, sort string, limit, offset int) (a.AnimeList, error){
var userAnimeList a.AnimeList