n8n-nodes-placid
Version:
n8n node to interact with Placid API for creative generation
21 lines • 655 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.requestDefaults = void 0;
exports.placidApiRequest = placidApiRequest;
const BASE_URL = 'https://api.placid.app/api/integromat';
async function placidApiRequest(method, endpoint, body) {
const options = {
method,
url: `${BASE_URL}${endpoint}`,
body,
};
return await this.helpers.httpRequestWithAuthentication.call(this, 'placidApi', options);
}
exports.requestDefaults = {
baseURL: BASE_URL,
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
};
//# sourceMappingURL=index.js.map