Examples of MchoiceUssdSender


Examples of hms.sdp.ussd.client.MchoiceUssdSender

            reply = "Incorrect value for gender \nYour gender \n1. Male \n2. Female";
            e.printStackTrace();
        }

        try {
            MchoiceUssdSender ussdSender = new MchoiceUssdSender(receiverAddress, appId, password);
            MchoiceUssdResponse mchoiceUssdResponse =
                                ussdSender.sendMessage(reply, ussdMessage.getAddress(), ussdMessage.getConversationId(), false);
            System.out.println("-------ussd response-------");
            System.out.println(mchoiceUssdResponse);

        } catch (MchoiceUssdException e) {
            e.printStackTrace();
View Full Code Here

Examples of hms.sdp.ussd.client.MchoiceUssdSender

        System.out.println("============REQUEST=============");
        System.out.println(ussdMessage);
        System.out.println("================================");

        try {
            MchoiceUssdSender ussdSender = new MchoiceUssdSender("http://127.0.0.1:8000/ussd/", "appid", "pass");
            final MchoiceUssdResponse mchoiceUssdResponse =
                    ussdSender.sendMessage("Test Message", ussdMessage.getAddress(), ussdMessage.getConversationId(), false);
            System.out.println("=============RESPONSE===============");
            System.out.println(mchoiceUssdResponse);
            System.out.println("====================================");

        } catch (Exception e) {
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.