lda-nexmo-helper
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Nexmo Java Helper that supports dynamic loading of US / CA purchased numbers and throttling / load balancing over them when sending SMS.
LetsDoApps Nexmo Java Helper
============================

Description
-----------

This Nexmo Java Helper loads your purchased US / CA numbers directly from your Nexmo account and handles throttling / load balacing of outbound SMS to respec the sending throughput rates.

Sample usage
------------

Sample code:

    NexmoHelper helper = nexmoHelper = new NexmoHelper(user, pass);
    helper.send("+1XXXXXXXX", "Hello US Crowd !", null); // Will pick one of your US numbers and throttle
    helper.send("+336XXXXXXXX", "Hello FR Crowd !", null); // Will issue a direct send

The third argument is a result callback if you want to perform special things after sending the SMS, for example:

    helper.send("+336XXXXXXXX", "Hello FR Crowd !", new SMSServiceCallback() {
      public void result(String to, boolean result) {
        System.out.println(result == true ? "Sms to " + to + " sent successfully" : "FAIL !!");
      }
    });

Deps
----

These classes depends on:

* Google Gson (Json Library)
* Google libphonenumber
* Our own Http abstraction to be released in lda-commons soon.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。