n8n-nodes-octavehq
Version:
Octave is the AI-powered messaging brain for B2B go-to-market teams, helping articulate product value, synthesize customer interaction data, and deploy consistent, effective messaging across all channels.
32 lines • 914 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.exportedProperties = void 0;
exports.execute = execute;
exports.exportedProperties = [
{
displayName: 'Segment OId',
name: 'oId',
type: 'string',
required: true,
default: '',
description: 'The OId of the segment to retrieve',
displayOptions: {
show: {
resource: ['segment'],
operation: ['get'],
},
},
},
];
async function execute(itemIndex) {
const oId = this.getNodeParameter('oId', itemIndex);
const response = await this.helpers.httpRequestWithAuthentication.call(this, 'octaveApi', {
method: 'GET',
url: `/api/v2/segment/get`,
qs: {
oId,
},
});
return [this.helpers.returnJsonArray(response)];
}
//# sourceMappingURL=get.operation.js.map