Skip to content

Commit e877b44

Browse files
authored
updated readme for the changes (#28)
1 parent 30703a7 commit e877b44

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ from bandwidth.bandwidth_client import BandwidthClient
1515

1616
from 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
1919
from bandwidth.voice.bxml.response import Response
2020
from 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

2525
from bandwidth.phonenumberlookup.controllers.api_controller import APIController, ApiResponse, APIException
2626
from 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"
5050
voice_client = bandwidth_client.voice_client.client
5151

5252
##Create phone call
53-
body = ApiCreateCallRequest()
53+
body = CreateCallRequest()
5454
body.mfrom = "+17777777777"
5555
body.to = "+16666666666"
5656
body.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

108108
from_phone = "+18888888888"
109109
to_phone = "+17777777777"
@@ -124,12 +124,10 @@ auth_client.create_messaging_two_factor(account_id, body)
124124
code = "123456" #This is the user input to validate
125125

126126
body = 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
)
135133
response = auth_client.create_verify_two_factor(account_id, body)

0 commit comments

Comments
 (0)