You are viewing an old version of this page. View the current version.
Compare with Current View Page History
Version 1 Next »
The method allows changing the status of the current user's subscriptions to notification channels.
PersonaClick.manageSubscription(email, phone, HashMap<String, Boolean>);
The current user's Phone.
HashMap<String, Boolean> subscriptions = new HashMap<>(); subscriptions.put("email_bulk", true); subscriptions.put("email_chain", true); subscriptions.put("email_transactional", true); subscriptions.put("sms_bulk", true); subscriptions.put("sms_chain", true); subscriptions.put("sms_transactional", true); subscriptions.put("web_push_bulk", true); subscriptions.put("web_push_chain", true); subscriptions.put("web_push_transactional", true); subscriptions.put("mobile_push_bulk", true); subscriptions.put("mobile_push_chain", true); subscriptions.put("mobile_push_transactional", true); PersonaClick.manageSubscription("john.doe@examplestore.com", "+100000000000", subscriptions);
HashMap<String, Boolean> subscriptions = new HashMap<>(); subscriptions.put("email_bulk", true); subscriptions.put("email_chain", false); subscriptions.put("email_transactional", true); PersonaClick.manageSubscription("john.doe@examplestore.com", null, subscriptions);
HashMap<String, Boolean> subscriptions = new HashMap<>(); subscriptions.put("sms_bulk", false); subscriptions.put("sms_chain", false); subscriptions.put("sms_transactional", true); PersonaClick.manageSubscription(null, "+100000000000", subscriptions);
HashMap<String, Boolean> subscriptions = new HashMap<>(); subscriptions.put("email_transactional", true); subscriptions.put("sms_transactional", true); PersonaClick.manageSubscription(null, null, subscriptions);
Page Navigation
Related Pages