java.lang.Object
fr.paris.lutece.plugins.broadcastproxy.business.providers.dolist.DolistAPI

public class DolistAPI extends Object
  • Constructor Details

    • DolistAPI

      public DolistAPI()
  • Method Details

    • getDolistContactId

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

      public String addUser(String userEmail, String strAccountId) throws IOException
      ADD user
      Parameters:
      eMail -
      strAccountId -
      Throws:
      IOException
    • 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
    • updateInterests

      public String updateInterests(String userEmail, List<Integer> subscriptionsToUpdate, String action, String strAccountId) throws Exception
      Throws:
      Exception