use of com.twilio.twiml.VoiceResponse in project api-snippets by TwilioDevEd.
the class VoiceApp method main.
public static void main(String[] args) {
get("/hello", (req, res) -> "Hello Web");
post("/", (request, response) -> {
Say say = new Say.Builder("Hello from your pals at Twilio! Have fun.").build();
VoiceResponse voiceResponse = new VoiceResponse.Builder().say(say).build();
return voiceResponse.toXml();
});
}
Aggregations