Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Method Objective
The method allows changing the status of the current user's subscriptions to notification channels.
Syntax and parameters
Code Block | ||||
---|---|---|---|---|
| ||||
sdk.manageSubscription(params) |
Request parameters
Name | Type | Requirement | Description | ||
---|---|---|---|---|---|
string | optionally | The current user's Email. | |||
phone | string | optionally | The current user's phone in full international format.
| ||
emailBulk | boolean | optionally | It changes the current user's subscription status to bulk email campaigns. | ||
emailChain | boolean | optionally | It changes the current user's subscription status to triggered email campaigns. | ||
emailTransactional | boolean | optionally | It changes the current user's subscription status for transactional email campaigns.
| ||
smsBulk | boolean | optionally | It changes the current user's subscription status to bulk SMS campaigns. | ||
smsChain | boolean | optionally | It changes the current user's subscription status to triggered SMS campaigns. | ||
smsTransactional | boolean | optionally | It changes the current user's subscription status for transactional SMS campaigns.
| ||
webPushBulk | boolean | optionally | It changes the current user's subscription status to bulk webpush campaigns. | ||
webPushChain | boolean | optionally | It changes the current user's subscription status to triggered webpush campaigns. | ||
webPushTransactional | boolean | optionally | It changes the current user's subscription status for transactional webpush campaigns.
| ||
mobilePushBulk | boolean | optionally | It changes the current user's subscription status to bulk app campaigns. | ||
mobilePushChain | boolean | optionally | It changes the current user's subscription status to triggered app campaigns. | ||
mobilePushTransactional | boolean | optionally | It changes the current user's subscription status for transactional app campaigns.
|
Examples of use
Code Block | ||||
---|---|---|---|---|
| ||||
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 ) |
Code Block | ||||
---|---|---|---|---|
| ||||
sdk.manageSubscription( email: "john.doe@examplestore.com", emailBulk: true, emailChain: false, emailTransactional: true, ) |
Code Block | ||||
---|---|---|---|---|
| ||||
sdk.manageSubscription( phone: "+100000000000", smsBulk: false, smsChain: false, smsTransactional: true, ) |
Code Block | ||||
---|---|---|---|---|
| ||||
sdk.manageSubscription( emailTransactional: true, smsTransactional: true ) |
Column | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Page Navigation
Related Pages
|