smsapi / smsapi-python-client

SMSAPI Python client that allows you to send messages, manage Short URLs and administrate your SMSAPI account.
https://www.smsapi.com/
Other
55 stars 34 forks source link

`'Sms' object has no attribute 'send_mfa'` error when sending MFA code #33

Open IhateTrains opened 1 year ago

IhateTrains commented 1 year ago

For MFA I followed the example from here: https://github.com/smsapi/smsapi-python-client/blob/5ffbc7b9d93cecdc4e0f02b5a02469f48f80332d/examples/sms.py#L39

>>> from django.conf import settings                                                                        
>>> from smsapi.client import SmsApiPlClient                           
>>> client = SmsApiPlClient(access_token=settings.SMSAPI_ACCESS_TOKEN) 
>>> client.sms.send_mfa(phone_number="420420420", content="Twój kod weryfikacyjny: [%code%]", fast=0)       
Traceback (most recent call last):
  File "<console>", line 1, in <module>
AttributeError: 'Sms' object has no attribute 'send_mfa'
>>>

Our token is correct, sending normal SMS works just fine. OS: Windows 11 Python version: 3.10.6

Are we doing something wrong, or is it a bug? EDIT: Noticed this feature was added in August and hasn't been released.