added some Bruno AniList Requests for AniTrack

This commit is contained in:
John O'Keefe 2024-07-20 00:03:52 -04:00
parent dfcc479106
commit daa9c3c40a
4 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,52 @@
meta {
name: AniList Item
type: graphql
seq: 2
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
query ($id: Int, $listType: MediaType) {
Media(id: $id, type: $listType) {
id
idMal
title {
romaji
english
native
}
description
coverImage {
large
}
tags {
id
name
description
category
rank
isGeneralSpoiler
isMediaSpoiler
isAdult
}
}
}
}
body:graphql:vars {
{
"id": 157371,
"listType": "ANIME"
}
}

View File

@ -0,0 +1,17 @@
meta {
name: Load AniList Oauth Page
type: http
seq: 3
}
get {
url: https://anilist.co/api/v2/oauth/authorize?client_id={{ANILIST_APP_ID}}&redirect_uri=http://localhost:6734/callback&response_type=code
body: none
auth: none
}
params:query {
client_id: {{ANILIST_APP_ID}}
redirect_uri: http://localhost:6734/callback
response_type: code
}

View File

@ -0,0 +1,9 @@
{
"version": "1",
"name": "AniTrack",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

View File

@ -0,0 +1,3 @@
vars {
ANILIST_APP_ID: {{process.env.ANILIST_APP_ID}}
}