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");MitakeSmsSendResultresult = MitakeSms.send("0912345678", "this is a sample message");List<SendOptions> optsList = newArrayList<SendOptions>();
SendOptionsopts = newSendOptions().addDestination("0912345678").setMessage("this is a sample message");
optsList.add(opts);
opts = newSendOptions().addDestination("0987654321").setMessage("Hello World");
optsList.add(opts);
MitakeSmsSendResultresult = MitakeSms.send(optsList);MitakeSmsQueryAccountPointResultresult = MitakeSms.queryAccountPoint();MitakeSmsQueryMessageStatusResultresult = MitakeSms.queryMessageStatus("messageid1", "messageid2");
// orMitakeSmsQueryMessageStatusResultresult = MitakeSms.queryMessageStatus(List<String> messageIds);