@radio-retail/api-client
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -6,2 +6,3 @@ const getData = require('../utils/get-raw-data'); | ||
const baseRoute = '/v2/clients'; | ||
const contactsBaseRoute = '/v2/contacts'; | ||
@@ -38,5 +39,5 @@ module.exports = function (instance) { | ||
// Contacts | ||
getContacts(clientId, params, config = {}) { | ||
getContacts(contactId, params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/${clientId}/contacts`, config).then(getData(config.raw)); | ||
return instance.get(`${contactsBaseRoute}/${contactId}`, config).then(getData(config.raw)); | ||
}, | ||
@@ -43,0 +44,0 @@ |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
11756
278