Hello Luis,

That's weird, i use Firefox and Chrome and the examples are displayed
correctly, nevertheless i am posting the API usage examples here as well,

 public static void main(String[] args) {

    SMSManager smsManager = SMSManager.getInstance();

    // We can change the prefetch size of the background worker thread

  smsManager.setSmsMessagesPrefetchSize(30);

    // We can change the send SMS rate

  smsManager.setSmsMessagesSendRate(65);

    try {

      // Send SMS to a single destination

   smsManager.sendSMS("localhost", "13013", "foo", "bar",
"sender_mobile_number", "receiver_mobile_number", "the_message");

      // Send SMS to a single destination with a specific priority and send rate

   smsManager.sendSMS("localhost", "13013", "foo", "bar",
"sender_mobile_number", "receiver_mobile_number", "the_message",
SMSManager.SMS_PRIORITY_3);

      // Send SMS to multiple recipients

   List<String> recipientsGroupA = new ArrayList<String>();

   recipientsGroupA.add("receiver_mobile_number_1");

   recipientsGroupA.add("receiver_mobile_number_2");

   recipientsGroupA.add("receiver_mobile_number_3");

   recipientsGroupA.add("receiver_mobile_number_4");

   recipientsGroupA.add("receiver_mobile_number_5");

   smsManager.sendSMS("localhost", "13013", "foo", "bar",
"sender_mobile_number", recipientsGroupA, "the_message");

      // Send SMS to multiple recipients with a specific priority and send rate

   List<String> recipientsGroupB = new ArrayList<String>();

   recipientsGroupB.add("receiver_mobile_number_1");

   recipientsGroupB.add("receiver_mobile_number_2");

   recipientsGroupB.add("receiver_mobile_number_3");

   recipientsGroupB.add("receiver_mobile_number_4");

   recipientsGroupB.add("receiver_mobile_number_5");

   smsManager.sendBulkSMS("localhost", "13013", "foo", "bar",
"sender_mobile_number", recipientsGroupB, "the_message",
SMSManager.SMS_PRIORITY_7);

     } catch (Exception ex) {

   ex.printStackTrace();

  }

    // Stops the background worker. Use it prior exiting your program

  // smsManager.stopSMSManagerWorker();



 }


The upcoming release of the API will include WAP Push functionality also! so
stay tuned!

Best Regards

Justin

2010/5/11 Luis Fernando Gutiérrez <[email protected]>

> Hello Justin.
>
> I browsed to
> http://sites.google.com/site/kioubsite/Programming/Kannel-Encoding-Clarifications
>  but
> I think there are some missing images or code? I couldn't see the API usage
> examples.
>
> Luis Fernando Gutiérrez
>
>  ------------------------------
> *From:* Justin Cater <[email protected]>
> *To:* [email protected]
> *Sent:* Tue, May 11, 2010 4:54:23 AM
> *Subject:* Java API for Kannel
>
> Hello all,
>
> We are proud to present our Java API for Kannel!
>
> We are using Kannel for several years and we are very pleased with the
> provided functionality and performance, so we feel that it is our obligation
> to contribute and give back to the community and provide a Java API to
> handle encoding issues and added value functionality that is not supported
> by the Gateway out of the box.
>
> Feel free to review, comment and enhance the API code!
>
> If you are interested, you can visit us at
>
> http://javacodegeeks.blogspot.com/
>
> Best Regards
>
> Justin Cater
>
>

Reply via email to