You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OIC Connection that has Pre-Request script based authorization

Question
11
Views
0
Comments

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;

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!