From a433df84dbe41351c0fa27816fee2f9d18c13c3a Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 16 Aug 2024 15:47:23 -0400 Subject: [PATCH] added bruno files for getting Mal Anime --- bruno/AniTrack/MAL/Get Single Anime.bru | 19 +++++++++++++++++++ bruno/AniTrack/MAL/Update Anime Status.bru | 15 +++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 bruno/AniTrack/MAL/Get Single Anime.bru create mode 100644 bruno/AniTrack/MAL/Update Anime Status.bru diff --git a/bruno/AniTrack/MAL/Get Single Anime.bru b/bruno/AniTrack/MAL/Get Single Anime.bru new file mode 100644 index 0000000..64f30c8 --- /dev/null +++ b/bruno/AniTrack/MAL/Get Single Anime.bru @@ -0,0 +1,19 @@ +meta { + name: Get Single Anime + type: http + seq: 5 +} + +get { + url: https://api.myanimelist.net/v2/anime/52991?fields=id,title,main_picture,alternative_titles,start_date,end_date,synopsis,mean,rank,popularity,num_list_users,num_scoring_users,nsfw,genres,created_at,updated_at,media_type,status,my_list_status,num_episodes,start_season,broadcast,source,average_episode_duration,rating,pictures,background,related_anime,recommendations,studios,statistics + body: none + auth: bearer +} + +params:query { + fields: id,title,main_picture,alternative_titles,start_date,end_date,synopsis,mean,rank,popularity,num_list_users,num_scoring_users,nsfw,genres,created_at,updated_at,media_type,status,my_list_status,num_episodes,start_season,broadcast,source,average_episode_duration,rating,pictures,background,related_anime,recommendations,studios,statistics +} + +auth:bearer { + token: {{MAL_ACCESS_TOKEN}} +} diff --git a/bruno/AniTrack/MAL/Update Anime Status.bru b/bruno/AniTrack/MAL/Update Anime Status.bru new file mode 100644 index 0000000..ad71748 --- /dev/null +++ b/bruno/AniTrack/MAL/Update Anime Status.bru @@ -0,0 +1,15 @@ +meta { + name: Update Anime Status + type: http + seq: 4 +} + +patch { + url: https://api.myanimelist.net/v2/anime/50205/my_list_status + body: formUrlEncoded + auth: bearer +} + +auth:bearer { + token: {{MAL_ACCESS_TOKEN}} +}