producteca-sdk
Advanced tools
Comparing version 7.3.0 to 7.3.1
@@ -54,5 +54,5 @@ (function() { | ||
Client.prototype._doRequest = function(arg, arg1) { | ||
var body, options, path, qs, raw, ref, ref1, verb; | ||
var body, headers, options, path, qs, raw, ref, ref1, verb; | ||
verb = arg.verb, path = arg.path, body = arg.body; | ||
ref = arg1 != null ? arg1 : {}, qs = ref.qs, raw = (ref1 = ref.raw) != null ? ref1 : false; | ||
ref = arg1 != null ? arg1 : {}, qs = ref.qs, raw = (ref1 = ref.raw) != null ? ref1 : false, headers = ref.headers; | ||
options = { | ||
@@ -62,3 +62,4 @@ method: verb, | ||
body: body, | ||
qs: qs | ||
qs: qs, | ||
headers: headers | ||
}; | ||
@@ -65,0 +66,0 @@ if (!_.isEmpty(this.authMethod)) { |
@@ -84,6 +84,13 @@ (function() { | ||
ProductsApi.prototype.updateIntegration = function(productId, integration) { | ||
var url; | ||
ProductsApi.prototype.updateIntegration = function(productId, integration, appId) { | ||
var headers, url; | ||
url = "/products/" + productId + "/integrations"; | ||
return this.client.putAsync(url, integration); | ||
if (appId) { | ||
headers = { | ||
"x-app-id": appId | ||
}; | ||
} | ||
return this.client.putAsync(url, integration, { | ||
headers: headers | ||
}); | ||
}; | ||
@@ -90,0 +97,0 @@ |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "7.3.0", | ||
"version": "7.3.1", | ||
"main": "build/sdk.js", | ||
@@ -11,0 +11,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
65696
817