Class DolistAPI
- java.lang.Object
-
- fr.paris.lutece.plugins.broadcastproxy.business.providers.dolist.DolistAPI
-
public class DolistAPI extends Object
-
-
Constructor Summary
Constructors Constructor Description DolistAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddUser(String userEmail, String strAccountId)ADD userStringgetAllSubscriptions(String typeSubscription, String strAccountId)get subscriptions Names (label)StringgetDolistContactId(String userEmail, String strAccountId)get ContactIDStringgetUserSubscriptions(String userEmail, String typeSubscription, String strAccountId)get Contact's subscriptionsStringupdateInterests(String userEmail, List<Integer> subscriptionsToUpdate, String action, String strAccountId)StringupdateSubscribtions(String userEmail, Map<String,String> subscriptionsToUpdate, String strAccountId)update subscriptions
-
-
-
Method Detail
-
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
-
-