Last active
March 30, 2022 20:17
-
-
Save samhk222/1e8f5c07a13198bc5339333d50f5c842 to your computer and use it in GitHub Desktop.
Postman Request
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
const reqObject = { | |
url: 'https://myendpoint.com/cnpj', | |
method: 'GET', | |
header: 'token: MYTOKEN' | |
}; | |
pm.sendRequest(reqObject, (err, res) => { | |
const returned_date = res.json() | |
pm.collectionVariables.set ("fetched_cnpj", returned_date.data.cnpj); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment