for (SmsNewsletterEntity smsNewsletter : mailQ.getSmsNewsletters(Pagination.DEFAULT)) {
System.out.println(smsNewsletter.getName());
}
SmsNewsletterEntity smsNewsletter = mailQ.getSmsNewsletter(1L);
System.out.println(smsNewsletter.getName());
SmsNewsletterEntity smsNewsletter = new SmsNewsletterEntity();
smsNewsletter
.setCampaign("Winter sales")
.setName("SMS news")
.setText("Winter sales are coming. Your discount code is {{code}}")
.setRecipientsListId(320L)
.setFrom(LocalDateTime.now().plusHours(2))
.setTo(LocalDateTime.now().plusDays(1));
smsNewsletter = mailQ.createSmsNewsletter(smsNewsletter);
System.out.println(smsNewsletter.getId());
SmsNewsletterEntity smsNewsletter = mailQ.getSmsNewsletter(1L);
System.out.println(smsNewsletter.getName());
mailQ.deleteSmsNewsletter(1L);
mailQ.startSmsNewsletter(1L);
mailQ.stopSmsNewsletter(1L);
This SMS will be charged!
mailQ.sendTestSms(1L,"+420600700700");