verifyPhoneNumber
client.verifyPhoneNumber( authToken, phoneNumber, verificationCode, successWithNoContent, failure )
About this command
Verify the profile phone number with the verification code sent by SMS.
|
Examples
import com.reach5.identity.sdk.core.models.AuthToken
val profileAuthToken: AuthToken = // Here paste the authorization token of the profile retrieved after login
client.verifyPhoneNumber(
authToken = profileAuthToken,
phoneNumber = "+33750253354",
verificationCode = "501028",
successWithNoContent = { _ -> ... }, // Do something
failure = { error -> ... } // Return a ReachFive error
)
Parameters
Authorization token of the profile retrieved from login (less than 5 minutes old).
|
|||||||||||||
The phone number of the profile. Both the international format and the national conventions of the account’s country are accepted if configured in account settings. |
|||||||||||||
The verification code sent by email or SMS. |
|||||||||||||
Callback called once the request has succeeded. No argument is expected. |
|||||||||||||
Callback called once the request has failed. You’ll get a |
Response
Type: Unit
ReachFiveError
message |
The message of the error. |
||||||||||||||
code |
The HTTP status code. |
||||||||||||||
exception |
The stack trace of the error. |
||||||||||||||
data |
Additional data about the error.
|