diff --git a/rest/AniTrack/Get Items/AniChart.http b/rest/AniTrack/Get Items/AniChart.http new file mode 100644 index 0000000..2a17738 --- /dev/null +++ b/rest/AniTrack/Get Items/AniChart.http @@ -0,0 +1,79 @@ +# @name AniChart + +POST https://graphql.anilist.co +Accept: applicaton/json +X-REQUEST-TYPE: Graphql + +query ($page: Int, $perPage: Int, $airingAt_greater:Int) { + Page(page: $page, perPage: $perPage) { + pageInfo { + total + perPage + currentPage + lastPage + hasNextPage + } + airingSchedules(airingAt_greater:$airingAt_greater){ + id + airingAt + timeUntilAiring + episode + mediaId + media{ + id + title{ + english + romaji + native + } + type + format + status + startDate{ + year + month + day + } + endDate{ + year + month + day + } + season + seasonYear + episodes + duration + coverImage{ + medium + large + color + extraLarge + } + bannerImage + genres + averageScore + meanScore + popularity + trending + favourites + tags{ + id + name + description + category + rank + isGeneralSpoiler + isMediaSpoiler + isAdult + } + isAdult + } + } + } +} + +{ + "page": 50, + "perPage": 20, + "airingAt_greater": 1730260800 +} diff --git a/rest/AniTrack/Get Items/AniList Item.http b/rest/AniTrack/Get Items/AniList Item.http new file mode 100644 index 0000000..9da6f8a --- /dev/null +++ b/rest/AniTrack/Get Items/AniList Item.http @@ -0,0 +1,83 @@ +# @name AniList Item + +POST https://graphql.anilist.co +Accept: applicaton/json +X-REQUEST-TYPE: Graphql +Authorization: Bearer {{ANILIST_ACCESS_TOKEN}} + +query ($userId: Int, $mediaId: Int, $listType: MediaType) { + MediaList(mediaId: $mediaId, userId: $userId, type: $listType) { + id + mediaId + userId + media { + id + idMal + tags { + id + name + description + rank + isMediaSpoiler + isAdult + } + title { + romaji + english + native + } + description + coverImage { + large + } + season + seasonYear + status + episodes + nextAiringEpisode { + airingAt + timeUntilAiring + episode + } + isAdult + } + status + startedAt { + year + month + day + } + completedAt { + year + month + day + } + notes + progress + score + repeat + user { + id + name + avatar { + large + medium + } + statistics { + anime { + count + statuses { + status + count + } + } + } + } + } +} + +{ + "userId": 413504, + "mediaId": 170998, + "listType": "ANIME" +} diff --git a/rest/AniTrack/Get Items/AniList MediaList User Query.http b/rest/AniTrack/Get Items/AniList MediaList User Query.http new file mode 100644 index 0000000..426b780 --- /dev/null +++ b/rest/AniTrack/Get Items/AniList MediaList User Query.http @@ -0,0 +1,70 @@ +# @name AniList MediaList User Query + +POST https://graphql.anilist.co +Accept: applicaton/json +X-REQUEST-TYPE: Graphql + +query( + $page: Int + $perPage: Int + $userId: Int + $listType: MediaType + $status: MediaListStatus +) { + Page(page: $page, perPage: $perPage) { + pageInfo { + total + perPage + currentPage + lastPage + hasNextPage + } + mediaList(userId: $userId, type: $listType, status: $status) { + id + mediaId + userId + media { + id + idMal + title { + romaji + english + native + } + description + coverImage { + large + } + season + seasonYear + episodes + } + status + notes + progress + score + repeat + user { + id + statistics { + anime { + count + statuses { + status + count + } + } + } + } + } + } +} + + +{ + "page": 1, + "perPage": 20, + "userId": 413504, + "listType": "ANIME", + "status": "CURRENT" +} diff --git a/rest/AniTrack/Get Items/AniList Search.http b/rest/AniTrack/Get Items/AniList Search.http new file mode 100644 index 0000000..5d18fa5 --- /dev/null +++ b/rest/AniTrack/Get Items/AniList Search.http @@ -0,0 +1,44 @@ +# @name AniList Search + +POST https://graphql.anilist.co +Accept: applicaton/json +X-REQUEST-TYPE: Graphql + +query ($search: String!, $listType: MediaType) { + Page (page: 1, perPage: 100) { + pageInfo { + total + currentPage + lastPage + hasNextPage + perPage + } + media (search: $search, type: $listType) { + id + idMal + title { + romaji + english + native + } + description + coverImage { + large + } + season + seasonYear + status + episodes + nextAiringEpisode{ + airingAt + timeUntilAiring + episode + } + } + } + } + +{ + "search": "dan-da-dan", + "listType": "ANIME" +} diff --git a/rest/AniTrack/Get Items/GetAniListUserWatchingList.http b/rest/AniTrack/Get Items/GetAniListUserWatchingList.http new file mode 100644 index 0000000..1596ca6 --- /dev/null +++ b/rest/AniTrack/Get Items/GetAniListUserWatchingList.http @@ -0,0 +1,93 @@ +# @name GetAniListUserWatchList + +POST https://graphql.anilist.co +Accept: applicaton/json +X-REQUEST-TYPE: Graphql + +query ( + $page: Int + $perPage: Int + $userId: Int + $listType: MediaType + $status: MediaListStatus + $sort: [MediaListSort] +) { + Page(page: $page, perPage: $perPage) { + pageInfo { + total + perPage + currentPage + lastPage + hasNextPage + } + mediaList(userId: $userId, type: $listType, status: $status, sort: $sort) { + id + mediaId + userId + media { + id + idMal + title { + romaji + english + native + } + description + coverImage { + large + } + season + seasonYear + status + episodes + nextAiringEpisode { + airingAt + timeUntilAiring + episode + } + } + status + startedAt { + year + month + day + } + completedAt { + year + month + day + } + notes + progress + score + repeat + user { + id + name + avatar { + large + medium + } + statistics { + anime { + count + statuses { + status + count + } + } + } + } + } + } +} + + +{ + "page": 1, + "perPage": 20, + "userId": 413504, + "listType": "ANIME", + "status": "CURRENT", + "sort": "UPDATED_TIME_DESC" +} diff --git a/rest/AniTrack/GetAuthorizationToken.http b/rest/AniTrack/GetAuthorizationToken.http new file mode 100644 index 0000000..e69de29 diff --git a/rest/AniTrack/Load AniList Oauth Page.http b/rest/AniTrack/Load AniList Oauth Page.http new file mode 100644 index 0000000..e69de29 diff --git a/rest/http-client.env.json b/rest/http-client.env.json new file mode 100644 index 0000000..c0da0c1 --- /dev/null +++ b/rest/http-client.env.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://raw.githubusercontent.com/mistweaverco/kulala.nvim/main/schemas/http-client.env.schema.json", + "dev": { + "ANILIST_APP_ID": "", + "ANILIST_SECRET": "", + "SIMKL_CLIENT_ID": "", + "SIMKL_CLIENT_SECRET": "", + "MAL_CLIENT_ID": "", + "MAL_CLIENT_SECRET": "", + "ANILIST_ACCESS_TOKEN": "", + "ANILSIT_CODE": "", + "SIMKL_AUTH_TOKEN": "", + "MAL_CODE": "", + "MAL_VERIFIER": "", + "MAL_USER": "", + "MAL_ACCESS_TOKEN": "" + } +}