sendNotifyTextMessage
inline suspend fun PinpointSmsVoiceV2Client.sendNotifyTextMessage(crossinline block: SendNotifyTextMessageRequest.Builder.() -> Unit): SendNotifyTextMessageResponse
Sends a templated text message through a notify configuration to a recipient's phone number.
Samples
fun main() {
//sampleStart
// Send an OTP verification code via SMS using a notify configuration.
val resp = pinpointSmsVoiceV2Client.sendNotifyTextMessage {
notifyConfigurationId = "nc-1234567890abcdef0"
destinationPhoneNumber = "+12065550100"
templateVariables = mapOf<String, String>(
"code" to "123456",
"expiry" to "10"
)
}
//sampleEnd
}