Skip to content

Instantly share code, notes, and snippets.

@mplacona
Created May 13, 2017 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mplacona/741e13e6d33b8cd4fe00468b9155afb6 to your computer and use it in GitHub Desktop.
Save mplacona/741e13e6d33b8cd4fe00468b9155afb6 to your computer and use it in GitHub Desktop.
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