Package cz.quanti.mailq.resources.v2
Class NewsletterResource
- java.lang.Object
-
- cz.quanti.mailq.resources.v2.BaseResource
-
- cz.quanti.mailq.resources.v2.NewsletterResource
-
public class NewsletterResource extends BaseResource
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewsletterEntitycreateNewsletter(NewsletterEntity newsletter)voiddeleteNewsletter(Long newsletterId)NewsletterEntitygetNewsletter(Long newsletterId)NewsletterEntitygetNewsletterByCode(String code)NewslettersEntitygetNewsletters(Pagination pagination)TagsEntitygetTags()voidsendTestEmail(Long newsletterId, String email)voidstartNewsletter(Long newsletterId)voidstopNewsletter(Long newsletterId)voidupdateNewsletter(NewsletterEntity newsletter)voidupdatePreparedNewsletter(PreparedNewsletterEntity preparedNewsletter)-
Methods inherited from class cz.quanti.mailq.resources.v2.BaseResource
getConnector
-
-
-
-
Method Detail
-
getNewsletters
public NewslettersEntity getNewsletters(Pagination pagination) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
createNewsletter
public NewsletterEntity createNewsletter(NewsletterEntity newsletter) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
getTags
public TagsEntity getTags() throws InvalidRequestException, ApiException
- Throws:
InvalidRequestExceptionApiException
-
getNewsletterByCode
public NewsletterEntity getNewsletterByCode(String code) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
getNewsletter
public NewsletterEntity getNewsletter(Long newsletterId) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
updateNewsletter
public void updateNewsletter(NewsletterEntity newsletter) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
updatePreparedNewsletter
public void updatePreparedNewsletter(PreparedNewsletterEntity preparedNewsletter) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
deleteNewsletter
public void deleteNewsletter(Long newsletterId) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
startNewsletter
public void startNewsletter(Long newsletterId) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
stopNewsletter
public void stopNewsletter(Long newsletterId) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
sendTestEmail
public void sendTestEmail(Long newsletterId, String email) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
-