From c7694900e3a226f9cf7bfc6ea61164e3d2aa3810 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Wed, 18 Sep 2024 14:06:11 -0400 Subject: [PATCH] added ability to delete entries. Added MAL RefreshToken Function --- .../AniList/Set Items/Delete Media.bru | 31 +++++++++++++++++++ .../Simkl/Post Items/Delete Entry.bru | 29 +++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 bruno/AniTrack/AniList/Set Items/Delete Media.bru create mode 100644 bruno/AniTrack/Simkl/Post Items/Delete Entry.bru diff --git a/bruno/AniTrack/AniList/Set Items/Delete Media.bru b/bruno/AniTrack/AniList/Set Items/Delete Media.bru new file mode 100644 index 0000000..16e176b --- /dev/null +++ b/bruno/AniTrack/AniList/Set Items/Delete Media.bru @@ -0,0 +1,31 @@ +meta { + name: Delete Media + type: graphql + seq: 4 +} + +post { + url: https://graphql.anilist.co + body: graphql + auth: none +} + +headers { + Authorization: Bearer {{ANILIST_ACCESS_TOKEN}} + Content-Type: application/json + Accept: application/json +} + +body:graphql { + mutation($id:Int){ + DeleteMediaListEntry(id:$id){ + deleted + } + } +} + +body:graphql:vars { + { + "id":430978266 + } +} diff --git a/bruno/AniTrack/Simkl/Post Items/Delete Entry.bru b/bruno/AniTrack/Simkl/Post Items/Delete Entry.bru new file mode 100644 index 0000000..6802077 --- /dev/null +++ b/bruno/AniTrack/Simkl/Post Items/Delete Entry.bru @@ -0,0 +1,29 @@ +meta { + name: Delete Entry + type: http + seq: 2 +} + +post { + url: https://api.simkl.com/sync/history/remove + body: json + auth: none +} + +headers { + Authorization: Bearer {{SIMKL_AUTH_TOKEN}} + Content-Type: application/json + simkl-api-key: {{SIMKL_CLIENT_ID}} +} + +body:json { + { + "shows": [ + { + "ids": { + "simkl": 909121 + } + } + ] + } +}