This repository was archived by the owner on Jun 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
version 1.3.5 doesn't have a new delete method #8
Copy link
Copy link
Open
Description
It looks like a new 1.3.5 version doesn't have a delete method.
When I download a source code archive https://github.com/MadKudu/node-eloqua/archive/1.3.5.zip it contains all changes. But when I install it using npm this method is absent.
package.json
"name": "eloqua",
"version": "1.3.5",
"description": "A node wrapper for the Eloqua API",
"repository": {
"type": "git",
"url": "git://github.com/MadKudu/node-eloqua.git"
},
dist/client.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const field_1 = require("./field");
const contact_list_1 = require("./contact_list");
const contact_segment_1 = require("./contact_segment");
class Contact {
constructor(client) {
this.client = client;
this.fields = new field_1.default(this.client, 'contact');
this.lists = new contact_list_1.default(this.client);
this.segments = new contact_segment_1.default(this.client);
}
get(id, options) {
return this.client._request({
method: 'GET',
url: `/api/REST/1.0/data/contact/${id}`,
params: options
});
}
getAll(options) {
return this.client._request({
method: 'GET',
url: '/api/REST/1.0/data/contacts',
params: options
});
}
getSegment(segmentId, options) {
return this.client._request({
method: 'GET',
url: `/api/REST/2.0/data/contacts/segment/${segmentId}`,
// somehow, this call seems to be undocumented (https://community.oracle.com/thread/3900099)
params: options
});
}
update(id, data) {
return this.client._request({
data,
method: 'PUT',
url: `/api/REST/1.0/data/contact/${id}`
});
}
}
exports.default = Contact;
Metadata
Metadata
Assignees
Labels
No labels