added AniList GET REST items
This commit is contained in:
parent
4e6f910e74
commit
068e568ec6
79
rest/AniTrack/Get Items/AniChart.http
Normal file
79
rest/AniTrack/Get Items/AniChart.http
Normal file
@ -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
|
||||||
|
}
|
83
rest/AniTrack/Get Items/AniList Item.http
Normal file
83
rest/AniTrack/Get Items/AniList Item.http
Normal file
@ -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"
|
||||||
|
}
|
70
rest/AniTrack/Get Items/AniList MediaList User Query.http
Normal file
70
rest/AniTrack/Get Items/AniList MediaList User Query.http
Normal file
@ -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"
|
||||||
|
}
|
44
rest/AniTrack/Get Items/AniList Search.http
Normal file
44
rest/AniTrack/Get Items/AniList Search.http
Normal file
@ -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"
|
||||||
|
}
|
93
rest/AniTrack/Get Items/GetAniListUserWatchingList.http
Normal file
93
rest/AniTrack/Get Items/GetAniListUserWatchingList.http
Normal file
@ -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"
|
||||||
|
}
|
0
rest/AniTrack/GetAuthorizationToken.http
Normal file
0
rest/AniTrack/GetAuthorizationToken.http
Normal file
0
rest/AniTrack/Load AniList Oauth Page.http
Normal file
0
rest/AniTrack/Load AniList Oauth Page.http
Normal file
18
rest/http-client.env.json
Normal file
18
rest/http-client.env.json
Normal file
@ -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": ""
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user