accounting-sdk
Advanced tools
Comparing version 1.0.1 to 1.1.0
19
index.js
@@ -59,2 +59,19 @@ const Promise = require('bluebird'); | ||
} | ||
} | ||
getProfile(id) { | ||
return request.getAsync(`${this.url}/api/v1/invoices/profiles/${id}`, { | ||
auth: { | ||
bearer: this.token | ||
}, | ||
strictSSL: false | ||
}).then(function(response) { | ||
return _handleResponse(response); | ||
}).then(function(response) { | ||
if (response.data instanceof Object) { | ||
return response.data; | ||
} else { | ||
return _handleError(undefined); | ||
} | ||
}); | ||
} | ||
}; |
{ | ||
"name": "accounting-sdk", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Syntesa Accounting SDK", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
2427
68