Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 1.3.5 doesn't have a new delete method #8

Open
sviatoslav-lebediev opened this issue Mar 3, 2020 · 0 comments
Open

version 1.3.5 doesn't have a new delete method #8

sviatoslav-lebediev opened this issue Mar 3, 2020 · 0 comments

Comments

@sviatoslav-lebediev
Copy link

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant