Last active
April 19, 2017 15:34
-
-
Save realshadow/2864533a80b3050dc957e45387b69feb to your computer and use it in GitHub Desktop.
Postman - automatically set global variable depending on response
This file contains hidden or 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 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