From b11395a617133af9aac81ec52cba0d5ff8588d9d Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sun, 11 Aug 2024 18:32:06 -0400 Subject: [PATCH] added files to bruno --- .../Set Items/Change Episode Count.bru | 79 +++++++++++++++++++ .../Simkl/Post Items/Update Episode.bru | 52 ++++++++++++ 2 files changed, 131 insertions(+) create mode 100644 bruno/AniTrack/AniList/Set Items/Change Episode Count.bru create mode 100644 bruno/AniTrack/Simkl/Post Items/Update Episode.bru diff --git a/bruno/AniTrack/AniList/Set Items/Change Episode Count.bru b/bruno/AniTrack/AniList/Set Items/Change Episode Count.bru new file mode 100644 index 0000000..b5c019a --- /dev/null +++ b/bruno/AniTrack/AniList/Set Items/Change Episode Count.bru @@ -0,0 +1,79 @@ +meta { + name: Change Episode Count + type: graphql + seq: 3 +} + +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( + $mediaId:Int, + $progress:Int, + $status:MediaListStatus, + $score:Float, + $repeat:Int, + $notes:String, + $startedAt:FuzzyDateInput, + $completedAt:FuzzyDateInput, + ){ + SaveMediaListEntry( + mediaId:$mediaId, + progress:$progress, + status:$status, + score:$score, + repeat:$repeat, + notes:$notes, + startedAt:$startedAt + completedAt:$completedAt + ){ + mediaId + progress + status + score + repeat + notes + startedAt{ + year + month + day + } + completedAt{ + year + month + day + } + } + } +} + +body:graphql:vars { + { + "mediaId":170998, + "progress":5, + "status":"CURRENT", + "score":9.0, + "repeat":0, + "notes":",malSync::eyJ1IjoiaHR0cHM6Ly93d3cuY3J1bmNoeXJvbGwuY29tL3Nlcmllcy9HVkRIWDg1Wk4vI3NlYXNvbj1HNjNWQzJHUUsiLCJwIjoiIn0=::", + "startedAt":{ + "year":2024, + "month":7, + "day":10 + }, + "completedAt":{ + "year": 0, + "month":0, + "day":0 + } + } +} diff --git a/bruno/AniTrack/Simkl/Post Items/Update Episode.bru b/bruno/AniTrack/Simkl/Post Items/Update Episode.bru new file mode 100644 index 0000000..4f2ebd8 --- /dev/null +++ b/bruno/AniTrack/Simkl/Post Items/Update Episode.bru @@ -0,0 +1,52 @@ +meta { + name: Update Episode + type: http + seq: 1 +} + +post { + url: https://api.simkl.com/sync/history + body: json + auth: none +} + +headers { + Authorization: Bearer {{SIMKL_AUTH_TOKEN}} + Content-Type: application/json + simkl-api-key: {{SIMKL_CLIENT_ID}} +} + +body:json { + { + "shows": [ + { + "title": "Ramen Aka Neko", + "ids": { + "simkl": 2307708, + "mal": "57325", + "anilist": "170998" + }, + "episodes": [ + { + "number": 1 + }, + { + "number": 2 + }, + { + "number": 3 + }, + { + "number": 4 + }, + { + "number": 5 + }, + { + "number": 6 + } + ] + } + ] + } +}