From 8c61c5e96bc7cadecd837c308f729dae9dc054c1 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Tue, 30 Jul 2024 20:34:37 -0400 Subject: [PATCH] created query to get user watchlist from simkl --- .../Simkl/Get Items/GetUser WatchList.bru | 17 +++++++++++++++++ bruno/AniTrack/environments/Dev.bru | 3 ++- frontend/src/simkl/types/simklTypes.ts | 0 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 bruno/AniTrack/Simkl/Get Items/GetUser WatchList.bru create mode 100644 frontend/src/simkl/types/simklTypes.ts diff --git a/bruno/AniTrack/Simkl/Get Items/GetUser WatchList.bru b/bruno/AniTrack/Simkl/Get Items/GetUser WatchList.bru new file mode 100644 index 0000000..c7c13f7 --- /dev/null +++ b/bruno/AniTrack/Simkl/Get Items/GetUser WatchList.bru @@ -0,0 +1,17 @@ +meta { + name: GetUser WatchList + type: http + seq: 2 +} + +get { + url: https://api.simkl.com/sync/all-items/anime/watching + body: none + auth: none +} + +headers { + Authorization: Bearer {{SIMKL_AUTH_TOKEN}} + Content-Type: application/json + simkl-api-key: {{SIMKL_CLIENT_ID}} +} diff --git a/bruno/AniTrack/environments/Dev.bru b/bruno/AniTrack/environments/Dev.bru index 7002ac7..7993062 100644 --- a/bruno/AniTrack/environments/Dev.bru +++ b/bruno/AniTrack/environments/Dev.bru @@ -5,5 +5,6 @@ vars { SIMKL_CLIENT_SECRET: {{process.env.SIMKL_CLIENT_SECRET}} } vars:secret [ - code + code, + SIMKL_AUTH_TOKEN ] diff --git a/frontend/src/simkl/types/simklTypes.ts b/frontend/src/simkl/types/simklTypes.ts new file mode 100644 index 0000000..e69de29