aeremenok / unisender Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mkedo/unisender
Java UniSender API library
This project forked from mkedo/unisender
Java UniSender API library
Queries to API are built from HashMap, so the order is random. It's better to maintain the order they appear (replace HashMap with LinkedHashMap)
http://www.unisender.com/ru/help/api/checkEmail.html is now wrapped with only single id request-response
For better balancing, supply 64-char string attribute with sendEmail calls
When parsing sendEmail response like this
{"email":"[email protected]","headers":[],"error":"not_imported"},
{"email":"[email protected]","headers":[] ,"id":"ABC"},
(in test mode) Unisender throws
Caused by: org.json.JSONException: JSONObject["id"] not found.
at org.json.JSONObject.get(JSONObject.java:498)
at org.json.JSONObject.getString(JSONObject.java:669)
at com.unisender.UniSender.executeSendEmail(UniSender.java:653)
... 20 more
For http://www.unisender.com/ru/help/api/activateContacts fields "invite" and "comment" are missing.
For http://www.unisender.com/ru/help/api/subscribe.html support error code "too_many_double_optins"
http://www.unisender.com/ru/help/api/sendEmail.html
At present time only single calls are wrapped with java code. Need to support batch calls as well.
When performing 'sendBatchEmail' the request string looks like "&list_id=1079718%3A+null&body...".
It must look like "&list_id=1079718&body...".
That's because MailList#toString() is used to render the request parameter.
The same thing is probably with "sendEmail" and others.
headers Текст со списком заголовков, каждый заголовок - на отдельной строке в MIME-формате. Пока поддерживаются только два заголовка, Reply-To и Priority, остальные будут проигнорированы. Пример:
Reply-To: [email protected]
Priority: normal
Если отправляется несколько сообщений и заголовки должны быть свои для каждого адреса, то для headers применяется синтаксис массива, количество элементов которого должно совпадать с количеством элементов массива email.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.