Skip to content

Commit b94c886

Browse files
author
olgakup
committed
devop: replace api
1 parent 1b70d40 commit b94c886

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20.14.0

src/libs/layouts/MewSubscribe.vue

+6-9
Original file line numberDiff line numberDiff line change
@@ -414,36 +414,33 @@ const isLoading = ref(false)
414414
415415
*/
416416
const GROUP_ID = {
417-
cryptoKB: '130219086964590230',
418-
market: '130219093858977184',
419-
productUpdates: '130219101849126213'
417+
cryptoKB: 'CRYPTO_KB',
418+
market: 'MARKET',
419+
productUpdates: 'PRODUCT_UPDATES'
420420
}
421421
422422
const finishSignUP = async () => {
423-
const _url = `https://connect.mailerlite.com/api/subscribers`
423+
const _url = `https://qa.mewwallet.dev/email-web`
424424
425425
const groups = []
426426
if (checkBoxCryptoKB.value) groups.push(GROUP_ID.cryptoKB)
427427
if (checkBoxMarket.value) groups.push(GROUP_ID.market)
428428
if (checkBoxUpdates.value) groups.push(GROUP_ID.productUpdates)
429-
430429
const _body = JSON.stringify({
431430
email: email.value,
432431
fields: {
433-
product_source: props.currProject,
434432
platform: 'web'
435433
},
436434
groups: [
437435
...groups
438-
]
436+
],
437+
product: props.currProject,
439438
})
440439
try {
441440
isLoading.value = true
442441
const response = await fetch(_url, {
443442
method: 'POST',
444443
headers: {
445-
Authorization: `Bearer ${props.apikey}`,
446-
'X-Version': '2038-01-19',
447444
'Content-Type': 'application/json',
448445
'Accept': 'application/json'
449446
},

0 commit comments

Comments
 (0)