OIC Connection that has Pre-Request script based authorization
Summary:
We are trying to establish OIC connection with an application. Need your help.
Content (required):
We can connect using Pre-request Script in Postman. Need to replicate it in OIC.
Pre-request Script:
var public_key = "XXXX";
var private_key = "YYYY";
var tenant_id = "ZZZZ";
var service = "search";
var method = "GET";
var endpoint = "/units/hierarchy";
var host = https://logic-sandbox.interfolio.com;
var request_string = "/byc/core/" + service + "/" + tenant_id + endpoint;
var api_url = host + request_string;
var moment = require('moment');
var timestamp_string = moment().utc().format("YYYY-MM-DD HH:mm:ss");
var verb_request_string = method + "\n\n\n" + timestamp_string + "\n" + request_string;
0