Function authy::api::phone::start [] [src]

pub fn start(
    client: &Client,
    via: ContactType,
    country_code: u16,
    phone: &str,
    code_length: Option<u8>,
    locale: Option<&str>
) -> Result<(Status, PhoneStart), AuthyError>

Initiate a phone verification check.

The Authy Phone Verification API allows you to verify that the user has the device in their possession. The Authy Phone Verification API lets you request a verification code to be sent to the user and also verify that the code received by the user is valid.

When you want to verify a user's phone you start by requesting a verification code for that user's phone number. The verification code is valid for 10 minutes. Subsequent calls to the API within the expiration time will send the same verification code.

Please see the Authy documentation for more details: https://www.twilio.com/docs/api/authy/authy-phone-verification-api#requesting-and-verifying-the-verification-code