From 4d9c54a1163af4fa82ccc77a9ee98cc16d144697 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 17 Feb 2025 21:02:30 -0500 Subject: [PATCH] added AniList Auth Pages --- rest/AniTrack/GetAuthorizationToken.http | 3 +++ rest/AniTrack/Load AniList Oauth Page.http | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/rest/AniTrack/GetAuthorizationToken.http b/rest/AniTrack/GetAuthorizationToken.http index e69de29..16325e7 100644 --- a/rest/AniTrack/GetAuthorizationToken.http +++ b/rest/AniTrack/GetAuthorizationToken.http @@ -0,0 +1,3 @@ +# @name GetAuthorizationToken + +GET https://anilist.co/api/v2/oauth/authorize?client_id={{ANILIST_APP_ID}}&redirect_uri=http://localhost:6734/callback&response_type=code diff --git a/rest/AniTrack/Load AniList Oauth Page.http b/rest/AniTrack/Load AniList Oauth Page.http index e69de29..b2cc304 100644 --- a/rest/AniTrack/Load AniList Oauth Page.http +++ b/rest/AniTrack/Load AniList Oauth Page.http @@ -0,0 +1,11 @@ +# @name Load AniList Oauth Token + +POST https://anilist.co/api/v2/oauth/token +Content-Type: application/x-www-form-urlencoded +Accept: application/json + +grant_type=authorization_code +client_id={{ANILIST_APP_ID}} +client_secret={{ANILIST_SECRET_ID}} +redirect_uri=http://localhost:6734/callback +code={{ANILIST_CODE}}