send

abstract suspend fun send(parameters: OTP.WhatsAppOTP.Parameters): OTPSendResponse

Send a one-time passcode (OTP) to a user's phone number via WhatsApp. If you'd like to create a user and send them a passcode with one request, use our loginOrCreate method.

Return

OTPSendResponse

Parameters

parameters

required to send OTP


abstract fun send(parameters: OTP.WhatsAppOTP.Parameters, callback: (OTPSendResponse) -> Unit)

Send a one-time passcode (OTP) to a user's phone number via WhatsApp. If you'd like to create a user and send them a passcode with one request, use our loginOrCreate method.

Parameters

parameters

required to send OTP

callback

a callback that receives a OTPSendResponse