Created
May 13, 2017 11:25
-
-
Save mplacona/741e13e6d33b8cd4fe00468b9155afb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.twilio.twiml.Body | |
import com.twilio.twiml.Message | |
import com.twilio.twiml.MessagingResponse | |
// ... | |
@RequestMapping(value = "/replyMessage", produces = arrayOf("text/xml")) | |
fun replyMessage(): String? { | |
val message = Message.Builder().body(Body("Be getting back to you soon, let me do some more Kotlin first")).build(); | |
return MessagingResponse.Builder().message(message).build().toXml(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment