Created
November 13, 2020 08:36
-
-
Save Gabri/172b8d939008a22f7f14f89e6d5cba0a to your computer and use it in GitHub Desktop.
[Postman] snippet per settare una variabile da response (authentication) #auth #postman
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
var jsonData = JSON.parse(responseBody); | |
if (jsonData.ticket) { | |
postman.setEnvironmentVariable("alf_ticket", jsonData.ticket); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment