ROMA connector instance name
Optional
type: NameTypeROMA connector instance name type
import * as roma from 'roma';
// warn
// When the script calls connector, if variable input parameters are used, the connector component may be missing when packaging
let client = roma.newClient("romaAppName");
let appId = "abc1";
let appKey = "base64example==";
let resp = client.sendRest("romaAPIName", {"X-HW-ID": appId, "X-HW-APPKEY": appKey, "$body": {}});
console.log(resp);
let client2 = roma.newClient("romaAppID", roma.NameType.AppId);
let appId2 = "abc2";
let appKey2 = "base64example==";
let resp2 = client2.sendRestByURL("POST", "/testapi", {"X-HW-ID": appId, "X-HW-APPKEY": appKey, "$body": {}});
Client api for ROMA connectors.