From 3d5c2d77cc485aefd9361985b67f1f3e7d680572 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sun, 21 Jul 2024 10:18:10 -0400 Subject: [PATCH] Added Test to Get Authorization Token from Anilist to Bruno --- bruno/AniTrack/GetAuthorizationToken.bru | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bruno/AniTrack/GetAuthorizationToken.bru diff --git a/bruno/AniTrack/GetAuthorizationToken.bru b/bruno/AniTrack/GetAuthorizationToken.bru new file mode 100644 index 0000000..2d0d718 --- /dev/null +++ b/bruno/AniTrack/GetAuthorizationToken.bru @@ -0,0 +1,28 @@ +meta { + name: GetAuthorizationToken + type: http + seq: 4 +} + +post { + url: https://anilist.co/api/v2/oauth/token + body: formUrlEncoded + auth: none +} + +headers { + Accept: application/json + Content-Type: application/json +} + +body:form-urlencoded { + grant_type: authorization_code + client_id: {{ANILIST_APP_ID}} + client_secret: {{ANILIST_SECRET_TOKEN}} + redirect_uri: http://localhost:6734/callback + code: {{code}} +} + +body:multipart-form { + : +}