Versions Compared
compared with
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 | ||||
---|---|---|---|---|
| ||||
personaclick("subscription", "manage", params); |
Name | Type | Requirement | Description |
---|---|---|---|
params | Object | required | Object with request parameters. |
Request parameters
Name | Type | Requirement | Description |
---|---|---|---|
string | optionally | The current user's Email. | |
phone | string | optionally | The current user's Phone. |
email_bulk | boolean | optionally | It changes the current user's subscription status to bulk email campaigns. |
email_chain | boolean | optionally | It changes the current user's subscription status to triggered email campaigns. |
email_transactional | boolean | optionally | It changes the current user's subscription status for transactional email campaigns. |
sms_bulk | boolean | optionally | It changes the current user's subscription status to bulk SMS campaigns. |
sms_chain | boolean | optionally | It changes the current user's subscription status to triggered SMS campaigns. |
sms_transactional | boolean | optionally | It changes the current user's subscription status for transactional SMS campaigns. |
Examples of use
Code Block | ||||
---|---|---|---|---|
| ||||
personaclick("subscription", "manage", { email: "john.doe@examplestore.com", phone: "+100000000000", email_bulk: true, email_chain: true, email_transactional: true, sms_bulk: true, sms_chain: true, sms_transactional: true }); |
Code Block | ||||
---|---|---|---|---|
| ||||
personaclick("subscription", "manage", { email: "john.doe@examplestore.com", email_bulk: true, email_chain: false, email_transactional: true, }); |
Code Block | ||||
---|---|---|---|---|
| ||||
personaclick("subscription", "manage", { phone: "+100000000000", sms_bulk: false, sms_chain: false, sms_transactional: true }); |
Code Block | ||||
---|---|---|---|---|
| ||||
personaclick("subscription", "manage", { email_transactional: true, sms_transactional: true }); |
System Operations
Subscription Statuses
List of Subscription Changes
Table of Contents | ||||
---|---|---|---|---|
|