@swan-admin/swan-ai-measurements 1.0.43 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tryOn.js +2 -2
package/package.json
CHANGED
package/tryOn.js
CHANGED
|
@@ -51,7 +51,7 @@ class TryOn {
|
|
|
51
51
|
if (checkParameters(userId, accessKey) === false) {
|
|
52
52
|
throw new Error(REQUIRED_MESSAGE);
|
|
53
53
|
}
|
|
54
|
-
return axios.post(`${APP_AUTH_BASE_URL}${API_ENDPOINTS.TRY_ON_IMAGE_DOWNLOAD}?userId=${userId}`, {
|
|
54
|
+
return axios.post(`${APP_AUTH_BASE_URL}${API_ENDPOINTS.TRY_ON_IMAGE_DOWNLOAD}?userId=${userId}`, null, {
|
|
55
55
|
headers: { "X-Api-Key": accessKey },
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -149,7 +149,7 @@ class TryOn {
|
|
|
149
149
|
throw new Error(REQUIRED_MESSAGE);
|
|
150
150
|
}
|
|
151
151
|
const url = `${APP_AUTH_BASE_URL}${API_ENDPOINTS.TRY_ON_RESULT_IMAGE_DOWNLOAD}?scan_id=${userId}&store_url=${shopDomain}&product_name=${productName}`;
|
|
152
|
-
return axios.post(url, {
|
|
152
|
+
return axios.post(url, null, {
|
|
153
153
|
headers: { "X-Api-Key": accessKey },
|
|
154
154
|
});
|
|
155
155
|
};
|