CloudFlare\User::initialize_two_factor_authentication PHP Method

initialize_two_factor_authentication() public method

Begin setting up CloudFlare two-factor authentication with a given telephone number
public initialize_two_factor_authentication ( integer $country_code, string $mobile_phone_number, string $current_password )
$country_code integer The country code of your mobile phone number
$mobile_phone_number string Your mobile phone number
$current_password string Your current CloudFlare password
    public function initialize_two_factor_authentication($country_code, $mobile_phone_number, $current_password)
    {
        $data = ['country_code' => $country_code, 'mobile_phone_number' => $mobile_phone_number, 'current_password' => $current_password];
        return $this->post('/user/two_factor_authentication', $data);
    }