Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Valid request get proper response
- fetch('http://128.199.223.234/api/oauth/access_token?grant_type=password&client_id=WorldKoins&client_secret=qCx3whT4t8ufR8B8CVYC7OU1qyA5Q0VP4GXKayN8&username=admin@email.com&password=123456',{method: 'POST'}).then(function(response) { console.log(response) }).catch(function(err) { console.log(err)});
- Response for valid request
- body: (...)
- bodyUsed: false
- headers: Headers
- ok: true
- status: 200
- statusText: "OK"
- type: "cors"
- url: "http://128.199.223.234/api/oauth/access_token?grant_type=password&client_id=WorldKoins&client_secret=qCx3whT4t8ufR8B8CVYC7OU1qyA5Q0VP4GXKayN8&username=admin@email.com&password=123456"
- Invalid request get proper response
- fetch('http://128.199.223.234/api/oauth/access_token?grant_type=password&client_id=WorldKoins&client_secret=qCx3whT4t8ufR8B8CVYC7OU1qyA5Q0VP4GXKayN8&username=admin@email.com&password=12345s6',{method: 'POST'}).then(function(response) { console.log(response) }).catch(function(err) { console.log(err)});
- Response for invalid request
- body: (...)
- bodyUsed: false
- headers: Headers
- ok: false
- status: 500
- statusText: "InvalidCredentialsException:The user credentials were incorrect."
- type: "cors"
- url: "http://128.199.223.234/api/oauth/access_token?grant_type=password&client_id=WorldKoins&client_secret=qCx3whT4t8ufR8B8CVYC7OU1qyA5Q0VP4GXKayN8&username=admin@email.com&password=12345s6"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement