Skip to content

Instantly share code, notes, and snippets.

@Gabri
Created November 13, 2020 08:36
Show Gist options
  • Save Gabri/172b8d939008a22f7f14f89e6d5cba0a to your computer and use it in GitHub Desktop.
Save Gabri/172b8d939008a22f7f14f89e6d5cba0a to your computer and use it in GitHub Desktop.
[Postman] snippet per settare una variabile da response (authentication) #auth #postman
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