Last active
September 25, 2017 12:30
-
-
Save anteriovieira/0a6f385a8168be58bb32a15540490d46 to your computer and use it in GitHub Desktop.
Postman
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 teste_token = false; | |
if (responseCode.code === 200) { | |
var jsonData = JSON.parse(responseBody); | |
postman.setEnvironmentVariable("access_token", jsonData["access_token"]); | |
teste_token = true; | |
} | |
tests["Fetch token success"] = teste_token; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment