Subscriptions (RN SDK)
- Andrey Veprikov
Method Objective
The method allows changing the status of the current user's subscriptions to notification channels.
Syntax and parameters
pcsdk.subscriptions("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 in full international format. A phone number in full international format may begin with a plus sign (+) followed by the country code, city (area) code, and phone number. |
external_id | string | optionally | Store side user ID. |
loyalty_id | string | optionally | The Loyalty Program user ID (loyalty card). |
telegram_id | string | optionally | Telegram User ID. |
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. It's recommended that always use the "true" value, even if you don't use transactional messages. |
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. It's recommended that always use the "true" value, even if you don't use transactional messages. |
web_push_bulk | boolean | optionally | It changes the current user's subscription status to bulk webpush campaigns. |
web_push_chain | boolean | optionally | It changes the current user's subscription status to triggered webpush campaigns. |
web_push_transactional | boolean | optionally | It changes the current user's subscription status for transactional webpush campaigns. It's recommended that always use the "true" value, even if you don't use transactional messages. |
mobile_push_bulk | boolean | optionally | It changes the current user's subscription status to bulk app campaigns. |
mobile_push_chain | boolean | optionally | It changes the current user's subscription status to triggered app campaigns. |
mobile_push_transactional | boolean | optionally | It changes the current user's subscription status for transactional app campaigns. It's recommended that always use the "true" value, even if you don't use transactional messages. |
Examples of use
pcsdk.subscriptions("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, web_push_bulk: true, web_push_chain: true, web_push_transactional: true, mobile_push_bulk: true, mobile_push_chain: true, mobile_push_transactional: true });
pcsdk.subscriptions("manage", { email: "john.doe@examplestore.com", email_bulk: true, email_chain: false, email_transactional: true, });
pcsdk.subscriptions("manage", { phone: "+100000000000", sms_bulk: false, sms_chain: false, sms_transactional: true });
pcsdk.subscriptions("manage", { email_transactional: true, sms_transactional: true });
Page Navigation
Related Pages
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
-
Page:
Copyright 2018-2024 PersonaClick