Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the request from Postman's Get Access Token

I am successfully getting Postman's Get Access Token feature to work. I need to see the request it's making, though, so I can make the call in code.

Any ideas how to do that?

like image 710
mstrom Avatar asked Mar 01 '18 21:03

mstrom


People also ask

How can I get token from post request?

To get the API token for a user, an HTTP POST request should be sent to the Token resource. In the post body, username and password are specified in JSON format, and the response body contains a token key with an actual API Token as the value.

How can I get Bearer Token in GET request?

To send a GET request with a Bearer Token authorization header, you need to make an HTTP GET request and provide your Bearer Token with the Authorization: Bearer {token} HTTP header.


1 Answers

You can view a token request by opening the postman console.

View > Show Postman console (ALT + CTRL + C)

The postman console holds all your request logs, to make it easier you can clear all the request using the clear button in the top right corner. When you make the token request for your call, it will show up here.

enter image description here

like image 111
Jordi Avatar answered Oct 03 '22 09:10

Jordi