@modulbank/sendamo
Advanced tools
Comparing version 0.0.26-beta-sm-8778-integration-with-cityes-add-42b4ec18 to 0.0.26-beta-sm-8778-integration-with-cityes-add-49ba39b0
@@ -84,8 +84,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new Promise((resolve, reject) => { | ||
const url = new URL('https://postback.cityads.com/service/postback/'); | ||
url.searchParams.set('campaign_secret', 'oPBnE0'); | ||
url.searchParams.set('order_id', orderId); | ||
url.searchParams.set('click_id', clickId); | ||
// @ts-ignore | ||
fetch(`https://postback.cityads.com/service/postback/?campaign_secret=oPBnE0&order_id='\'${orderId}&click_id=${clickId}`, { | ||
method: 'GET', | ||
headers: { | ||
'Content-Type': 'application/json;charset=utf-8', | ||
} | ||
fetch(url.toString(), { | ||
method: 'GET' | ||
}) | ||
@@ -120,2 +121,4 @@ .then((response) => __awaiter(this, void 0, void 0, function* () { | ||
const utmSource = getCookie("utm_source"); | ||
const responseData = yield response.json(); | ||
console.log(responseData); | ||
if (utmSource === "cityads") { | ||
@@ -122,0 +125,0 @@ sendPostBack(clickId, orderId); |
{ | ||
"name": "@modulbank/sendamo", | ||
"version": "0.0.26-beta-sm-8778-integration-with-cityes-add-42b4ec18", | ||
"version": "0.0.26-beta-sm-8778-integration-with-cityes-add-49ba39b0", | ||
"description": "send to amocrm method", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8350
184