@@ -15,12 +15,12 @@ from bandwidth.bandwidth_client import BandwidthClient
1515
1616from bandwidth.messaging.models.message_request import MessageRequest
1717
18- from bandwidth.voice.models.api_create_call_request import ApiCreateCallRequest
18+ from bandwidth.voice.models.create_call_request import CreateCallRequest
1919from bandwidth.voice.bxml.response import Response
2020from bandwidth.voice.bxml.verbs import *
2121
22- from bandwidth.twofactorauth .models.two_factor_code_request_schema import TwoFactorCodeRequestSchema
23- from bandwidth.twofactorauth .models.two_factor_verify_request_schema import TwoFactorVerifyRequestSchema
22+ from bandwidth.multifactorauth .models.two_factor_code_request_schema import TwoFactorCodeRequestSchema
23+ from bandwidth.multifactorauth .models.two_factor_verify_request_schema import TwoFactorVerifyRequestSchema
2424
2525from bandwidth.phonenumberlookup.controllers.api_controller import APIController, ApiResponse, APIException
2626from bandwidth.phonenumberlookup.models.accounts_tnlookup_request import AccountsTnlookupRequest
@@ -34,8 +34,8 @@ bandwidth_client = BandwidthClient(
3434 voice_basic_auth_password = ' password' ,
3535 messaging_basic_auth_user_name = ' username' ,
3636 messaging_basic_auth_password = ' password' ,
37- two_factor_auth_basic_auth_user_name = ' username' ,
38- two_factor_auth_basic_auth_password = ' password' ,
37+ multi_factor_auth_basic_auth_user_name = ' username' ,
38+ multi_factor_auth_basic_auth_password = ' password' ,
3939 phone_number_lookup_basic_auth_user_name = ' username' ,
4040 phone_number_lookup_basic_auth_password = ' password' ,
4141 web_rtc_basic_auth_user_name = ' username' ,
@@ -50,7 +50,7 @@ account_id = "12345"
5050voice_client = bandwidth_client.voice_client.client
5151
5252# #Create phone call
53- body = ApiCreateCallRequest ()
53+ body = CreateCallRequest ()
5454body.mfrom = " +17777777777"
5555body.to = " +16666666666"
5656body.application_id = " 3-d-4-b-5"
@@ -103,7 +103,7 @@ print(response.to_bxml())
103103### Create A MFA Request
104104
105105``` python
106- auth_client = bandwidth_client.two_factor_auth_client .client
106+ auth_client = bandwidth_client.multi_factor_auth_client .client
107107
108108from_phone = " +18888888888"
109109to_phone = " +17777777777"
@@ -124,12 +124,10 @@ auth_client.create_messaging_two_factor(account_id, body)
124124code = " 123456" # This is the user input to validate
125125
126126body = TwoFactorVerifyRequestSchema(
127- mfrom = from_phone,
128127 to = to_phone,
129128 application_id = application_id,
130129 scope = scope,
131130 code = code,
132- digits = digits,
133131 expiration_time_in_minutes = 3
134132)
135133response = auth_client.create_verify_two_factor(account_id, body)
0 commit comments