The method allows changing the status of the current user's subscriptions to notification channels.
sdk.manageSubscription(params) |
Name | Requirement | Description | |
---|---|---|---|
optionally | The current user's Email. | ||
phone | optionally | The current user's phone in full international format.
| |
userExternalId | optionally | Store side user ID | |
userLoyaltyId | optionally | The Loyalty Program user ID (loyalty card) | |
telegramID | optionally | Telegram User ID | |
emailBulk | optionally | It changes the current user's subscription status to bulk email campaigns. | |
emailChain | optionally | It changes the current user's subscription status to triggered email campaigns. | |
emailTransactional | optionally | It changes the current user's subscription status for transactional email campaigns.
| |
smsBulk | optionally | It changes the current user's subscription status to bulk SMS campaigns. | |
smsChain | optionally | It changes the current user's subscription status to triggered SMS campaigns. | |
smsTransactional | optionally | It changes the current user's subscription status for transactional SMS campaigns.
| |
webPushBulk | optionally | It changes the current user's subscription status to bulk webpush campaigns. | |
webPushChain | optionally | It changes the current user's subscription status to triggered webpush campaigns. | |
webPushTransactional | optionally | It changes the current user's subscription status for transactional webpush campaigns.
| |
mobilePushBulk | optionally | It changes the current user's subscription status to bulk app campaigns. | |
mobilePushChain | optionally | It changes the current user's subscription status to triggered app campaigns. | |
mobilePushTransactional | optionally | It changes the current user's subscription status for transactional app campaigns.
|
sdk.manageSubscription( email: "john.doe@examplestore.com", phone: "+100000000000", emailBulk: true, emailChain: true, emailTransactional: true, smsBulk: true, smsChain: true, smsTransactional: true, webPushBulk: true, webPushChain: true, webPushTransactional: true, mobilePushBulk: true, mobilePushChain: true, mobilePushTransactional: true ) |
sdk.manageSubscription( email: "john.doe@examplestore.com", emailBulk: true, emailChain: false, emailTransactional: true, ) |
sdk.manageSubscription( phone: "+100000000000", smsBulk: false, smsChain: false, smsTransactional: true, ) |
sdk.manageSubscription( emailTransactional: true, smsTransactional: true ) |
Page Navigation Related Pages |