Last active
March 6, 2022 05:47
-
-
Save leadelngalame1611/589da2fd8d604027d842bc379616ee91 to your computer and use it in GitHub Desktop.
[POSTMAN] Copy Token to environment variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This should be placed inside the test section in your postman | |
# It will provide the Token retrieved as Environment variable | |
var jsonData = pm.response.json(); | |
token = jsonData.access_token | |
console.log(token) | |
pm.environment.set("TOKEN", token); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment