added some Bruno AniList Requests for AniTrack
This commit is contained in:
parent
dfcc479106
commit
daa9c3c40a
52
bruno/AniTrack/AniList Item.bru
Normal file
52
bruno/AniTrack/AniList Item.bru
Normal 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"
|
||||
}
|
||||
}
|
17
bruno/AniTrack/Load AniList Oauth Page.bru
Normal file
17
bruno/AniTrack/Load AniList Oauth Page.bru
Normal 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
|
||||
}
|
9
bruno/AniTrack/bruno.json
Normal file
9
bruno/AniTrack/bruno.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "AniTrack",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
3
bruno/AniTrack/environments/Dev.bru
Normal file
3
bruno/AniTrack/environments/Dev.bru
Normal file
@ -0,0 +1,3 @@
|
||||
vars {
|
||||
ANILIST_APP_ID: {{process.env.ANILIST_APP_ID}}
|
||||
}
|
Loading…
Reference in New Issue
Block a user