rearranged bruno files to add simkl and more in future

This commit is contained in:
2024-07-29 16:53:05 -04:00
parent 065ac0950f
commit fdd1994f13
8 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,105 @@
meta {
name: AniList Item
type: graphql
seq: 1
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
query ($userId: Int, $mediaId: Int, $listType: MediaType) {
MediaList(mediaId: $mediaId, userId: $userId, type: $listType) {
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
}
}
}
}
}
}
}
body:graphql:vars {
{
"userId": 413504,
"mediaId": 157371,
"listType": "ANIME"
}
}
docs {
Title
Image
Description
Episodes
Status
Season
External & Streaming Links
}

View File

@ -0,0 +1,103 @@
meta {
name: AniList MediaList User Query
type: graphql
seq: 4
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
# Write your query or mutation here
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
}
}
}
}
}
}
}
}
body:graphql:vars {
{
"page": 1,
"perPage": 20,
"userId": 413504,
"listType": "ANIME",
"status": "CURRENT"
}
}
docs {
Title
Image
Description
Episodes
Status
Season
External & Streaming Links
User Stuff Per Item
Status
Score
Episode Progress
Total Rewatches
Notes
}

View File

@ -0,0 +1,75 @@
meta {
name: AniList Search
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 ($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
}
}
}
}
}
body:graphql:vars {
{
"search": "frieren",
"listType": "ANIME"
}
}
docs {
Title
Image
Description
Episodes
Status
Season
External & Streaming Links
}

View File

@ -0,0 +1,125 @@
meta {
name: GetAniListUserWatchingList
type: graphql
seq: 3
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
# Write your query or mutation here
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
}
}
}
}
}
}
}
}
body:graphql:vars {
{
"page": 1,
"perPage": 20,
"userId": 413504,
"listType": "ANIME",
"status": "CURRENT",
"sort": "UPDATED_TIME_DESC"
}
}
docs {
Title
Image
Description
Episodes
Status
Season
External & Streaming Links
}

View File

@ -0,0 +1,28 @@
meta {
name: GetAuthorizationToken
type: http
seq: 2
}
post {
url: https://anilist.co/api/v2/oauth/token
body: formUrlEncoded
auth: none
}
headers {
Accept: application/json
Content-Type: application/json
}
body:form-urlencoded {
grant_type: authorization_code
client_id: {{ANILIST_APP_ID}}
client_secret: {{ANILIST_SECRET_TOKEN}}
redirect_uri: http://localhost:6734/callback
code: {{code}}
}
body:multipart-form {
:
}

View File

@ -0,0 +1,17 @@
meta {
name: Load AniList Oauth Page
type: http
seq: 1
}
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,48 @@
meta {
name: AniList Change Episode Watched
type: graphql
seq: 1
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Authorization: Bearer {{process.env.ANILIST_ACCESS_TOKEN}}
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
mutation($mediaId:Int, $progress:Int, $status:MediaListStatus){
SaveMediaListEntry(mediaId:$mediaId, progress:$progress, status:$status){
mediaId
progress
status
score
repeat
notes
startedAt{
year
month
day
}
completedAt{
year
month
day
}
}
}
}
body:graphql:vars {
{
"mediaId": 1,
"progress": 26,
"status":"COMPLETED"
}
}

View File

@ -0,0 +1,33 @@
meta {
name: AniList Change Status
type: graphql
seq: 2
}
post {
url: https://graphql.anilist.co
body: graphql
auth: none
}
headers {
Authorization: Bearer {{process.env.ANILIST_ACCESS_TOKEN}}
Content-Type: "application/json"
Accept: "application/json"
}
body:graphql {
mutation($mediaId:Int, $status:MediaListStatus){
SaveMediaListEntry(mediaId:$mediaId, status:$status){
id
status
}
}
}
body:graphql:vars {
{
"mediaId": 1,
"status": "CURRENT"
}
}