Examples of queryCoverage()


Examples of org.smslib.http.ClickatellHTTPGateway.queryCoverage()

    Service.getInstance().startService();
    // Create a message.
    msg = new OutboundMessage("+306948494037", "Hello from SMSLib (Clickatell handler)");
    //msg.setFrom("SMSLIB.ORG");
    // Ask for coverage.
    System.out.println("Is recipient's network covered? : " + gateway.queryCoverage(msg));
    // Send the message.
    Service.getInstance().sendMessage(msg);
    System.out.println(msg);
    // Now query the service to find out our credit balance.
    System.out.println("Remaining credit: " + gateway.queryBalance());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.