Class DolistAPI
java.lang.Object
fr.paris.lutece.plugins.broadcastproxy.business.providers.dolist.DolistAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionADD usergetAllSubscriptions(String typeSubscription, String strAccountId) get subscriptions Names (label)getDolistContactId(String userEmail, String strAccountId) get ContactIDgetUserSubscriptions(String userEmail, String typeSubscription, String strAccountId) get Contact's subscriptionsupdateInterests(String userEmail, List<Integer> subscriptionsToUpdate, String action, String strAccountId) updateSubscribtions(String userEmail, Map<String, String> subscriptionsToUpdate, String strAccountId) update subscriptions
-
Constructor Details
-
DolistAPI
public DolistAPI()
-
-
Method Details
-
getDolistContactId
get ContactID- Parameters:
userEmail-strAccountId-- Returns:
- Dolist contact id
- Throws:
Exception
-
addUser
ADD user- Parameters:
eMail-strAccountId-- Throws:
IOException
-
getAllSubscriptions
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 Exceptionupdate 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
-