Skip to content

Instantly share code, notes, and snippets.

@realshadow
Last active April 19, 2017 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realshadow/2864533a80b3050dc957e45387b69feb to your computer and use it in GitHub Desktop.
Save realshadow/2864533a80b3050dc957e45387b69feb to your computer and use it in GitHub Desktop.
Postman - automatically set global variable depending on response
var response = JSON.parse(responseBody);
postman.setEnvironmentVariable("authorization_token", response.data.oauth.access_token);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment