Added Test to Get Authorization Token from Anilist to Bruno
This commit is contained in:
parent
daa9c3c40a
commit
3d5c2d77cc
28
bruno/AniTrack/GetAuthorizationToken.bru
Normal file
28
bruno/AniTrack/GetAuthorizationToken.bru
Normal file
@ -0,0 +1,28 @@
|
||||
meta {
|
||||
name: GetAuthorizationToken
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
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 {
|
||||
:
|
||||
}
|
Loading…
Reference in New Issue
Block a user