I am using postman to do some testing on a REST API.
To login I use a post request who respond with a token I need to keep to use it with another request.
and then I want to use it in another request who need that token in the header :
I seems that it's not sending the token. What am I doing wrong ?
The problem was that I was using postman.setEnvironmentVariable()
instead of postman.setGlobalVariable()
.
I found the answer here