Class DolistAPI


  • public class DolistAPI
    extends Object
    • Constructor Detail

      • DolistAPI

        public DolistAPI()
    • Method Detail

      • getDolistContactId

        public String getDolistContactId​(String userEmail,
                                         String strAccountId)
                                  throws Exception
        get ContactID
        Parameters:
        userEmail -
        strAccountId -
        Returns:
        Dolist contact id
        Throws:
        Exception
      • getAllSubscriptions

        public String getAllSubscriptions​(String typeSubscription,
                                          String strAccountId)
                                   throws Exception
        get subscriptions Names (label)
        Parameters:
        typeSubscription -
        strAccountId -
        Returns:
        json
        Throws:
        Exception
      • getUserSubscriptions

        public String getUserSubscriptions​(String userEmail,
                                           String typeSubscription,
                                           String strAccountId)
                                    throws Exception
        get Contact's subscriptions
        Parameters:
        userEmail -
        strAccountId -
        Returns:
        json
        Throws:
        Exception
      • updateSubscribtions

        public String updateSubscribtions​(String userEmail,
                                          Map<String,​String> subscriptionsToUpdate,
                                          String strAccountId)
                                   throws Exception
        update subscriptions
        Parameters:
        ContactName -
        mapSubscriptions -
        typeSubscription -
        strAccountId -
        Returns:
        response
        Throws:
        Exception