Mitake SMS library for Java
PLEASE UPDATE TO 0.4.0+
<dependency>
<groupId>tw.com.mitake</groupId>
<artifactId>lib-sms</artifactId>
<version>0.7.0</version>
</dependency>
compile 'tw.com.mitake:lib-sms:0.7.0'
MitakeSms.init("username", "password");
MitakeSmsSendResult result = MitakeSms.send("0912345678", "this is a sample message");
List<SendOptions> optsList = new ArrayList<SendOptions>();
SendOptions opts = new SendOptions().addDestination("0912345678").setMessage("this is a sample message");
optsList.add(opts);
opts = new SendOptions().addDestination("0987654321").setMessage("Hello World");
optsList.add(opts);
MitakeSmsSendResult result = MitakeSms.send(optsList);
MitakeSmsQueryAccountPointResult result = MitakeSms.queryAccountPoint();
MitakeSmsQueryMessageStatusResult result = MitakeSms.queryMessageStatus("messageid1", "messageid2");
// or
MitakeSmsQueryMessageStatusResult result = MitakeSms.queryMessageStatus(List<String> messageIds);