Created
August 24, 2022 18:38
-
-
Save rafaelmaeuer/003f7a7b02622cb6e6c7808cc0bb5f6c to your computer and use it in GitHub Desktop.
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 message = pm.variables.replaceIn('{{$randomCatchPhrase}}') | |
var sha256Hash = CryptoJS.SHA256(message).toString(); | |
//Method used to add Query params via script | |
pm.request.addQueryParams("sha256Hash=" + sha256Hash + "&infoData=" + pm.collectionVariables.get("infoData")); | |
console.log("sha256Hash :: " + sha256Hash) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment