n8n-nodes-tenable-community
Version:
n8n node for the Tenable One platform
16 lines (15 loc) • 461 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.productStatusApiRequest = productStatusApiRequest;
async function productStatusApiRequest(method, endpoint, body) {
const options = {
headers: {
'Accept': 'application/json',
},
method,
url: `https://status.tenable.com/api/v2${endpoint}`,
body,
json: true,
};
return this.helpers.httpRequest(options);
}