First of all, festive greetings. I keep tabs on the forums and it’s a wonderful community.
Using Knime, I’m hopeful of replicating some functionality that is used in Postman.
Firstly, I’ve been provided with a Pre-request script that creates a hash - do you think this can be replicated in Knime?
// CryptoJS library
var CryptoJS = require(“crypto-js”);
var method = request.method;
var uri = request.url;
var contentType = request.headers[“content-type”];
var dt = new Date().toUTCString();
var requestData = method + uri + contentType + dt;
var apikey = request.headers[“apikey”];
var hash = CryptoJS.HmacSHA256(requestData, apikey);
var signature = CryptoJS.enc.Base64.stringify(hash);
// Set Headers
The second challenge is to use the headers created above in the GET / POST nodes…
Thank you to anybody able and willing to guide me here.