From 04312745ffa25f8c6e8c03887074482627648e3e Mon Sep 17 00:00:00 2001 From: Igor Date: Thu, 19 Nov 2015 13:28:41 +0300 Subject: [PATCH 1/2] added the line, without which the program is not working --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b3c1c06..4e602fe 100644 --- a/index.js +++ b/index.js @@ -48,7 +48,8 @@ module.exports = function buildClient (baseUrl) { } }); - client.request = delayedRequest; + //client.request = delayedRequest; + return client; }; function storeAuth (res) { From d0272c1b6730cc7395f917f8d99b52011908a5c6 Mon Sep 17 00:00:00 2001 From: Igor Date: Thu, 10 Dec 2015 13:24:53 +0300 Subject: [PATCH 2/2] add path for work witn obtain notes, tasks and contacts-leads links --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4e602fe..77222a7 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,11 @@ module.exports = function buildClient (baseUrl) { createTask: 'post /private/api/v2/json/tasks/set', getContactsList: 'get /private/api/v2/json/contacts/list', - createContact: 'post /private/api/v2/json/contacts/set' + createContact: 'post /private/api/v2/json/contacts/set', + + getLeadsContactslist: 'get /private/api/v2/json/contacts/links', + getNoteslist: 'get /private/api/v2/json/notes/list', + getTasksList: 'get /private/api/v2/json/tasks/list' }, before: {