added getting MAL watchlist

This commit is contained in:
John O'Keefe 2024-08-15 21:27:53 -04:00
parent 22ff290a81
commit 3c7ca15376
3 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,25 @@
meta {
name: Get AnimeList
type: http
seq: 3
}
get {
url: https://api.myanimelist.net/v2/users/{{MAL_USER}}/animelist?fields=list_status&status=watching&limit=1000
body: formUrlEncoded
auth: bearer
}
params:query {
fields: list_status
status: watching
limit: 1000
}
headers {
:
}
auth:bearer {
token: {{MAL_ACCESS_TOKEN}}
}

View File

@ -0,0 +1,24 @@
meta {
name: Get Authorization
type: http
seq: 2
}
post {
url: https://myanimelist.net/v1/oauth2/token
body: formUrlEncoded
auth: none
}
headers {
Content-Type: application/x-www-form-urlencoded
}
body:form-urlencoded {
grant_type: authorization_code
client_id: {{MAL_CLIENT_ID}}
client_secret: {{MAL_CLIENT_SECRET}}
redirect_uri: {{MAL_CALLBACK_URI}}
code: {{MAL_CODE}}
code_verifier: {{MAL_VERIFIER}}
}

View File

@ -0,0 +1,18 @@
meta {
name: MAL Oauth Page
type: http
seq: 1
}
get {
url: https://myanimelist.net/v1/oauth2/authorize?response_type=code&client_id={{MAL_CLIENT_ID}}&redirect_uri={{MAL_CALLBACK_URI}}
body: none
auth: none
}
params:query {
response_type: code
client_id: {{MAL_CLIENT_ID}}
redirect_uri: {{MAL_CALLBACK_URI}}
:
}