added getting MAL watchlist
This commit is contained in:
parent
22ff290a81
commit
3c7ca15376
25
bruno/AniTrack/MAL/Get AnimeList.bru
Normal file
25
bruno/AniTrack/MAL/Get AnimeList.bru
Normal 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}}
|
||||
}
|
24
bruno/AniTrack/MAL/Get Authorization.bru
Normal file
24
bruno/AniTrack/MAL/Get Authorization.bru
Normal 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}}
|
||||
}
|
18
bruno/AniTrack/MAL/MAL Oauth Page.bru
Normal file
18
bruno/AniTrack/MAL/MAL Oauth Page.bru
Normal 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}}
|
||||
:
|
||||
}
|
Loading…
Reference in New Issue
Block a user