clean send otp view

This commit is contained in:
Parsa Nazer
2025-03-26 16:23:58 +03:30
parent 3c446eeaff
commit d4450a8adc
-6
View File
@@ -43,10 +43,6 @@ class SendOTPView(APIView):
Code: {otp}"""
sms_api = ghasedak_sms.Ghasedak(api_key="1227eaaddcba72bcb0169b37032cf16ae9ac6ed8b3b7c2768b74e2ee351d1b52gyRe3AGomZRPTNEd")
# response = sms_api.send_single_sms(ghasedak_sms.SendSingleSmsInput(message=message, receptor=phone, line_number='30005006006908', send_date='', client_reference_id=''))
# print(response)
response = sms_api.send_single_sms(
ghasedak_sms.SendSingleSmsInput(
@@ -57,8 +53,6 @@ Code: {otp}"""
)
)
# response = sms_api.send_otp_sms(otp_input)
if response['statusCode'] == 200:
return Response({'detail': f'OTP sent successfully {otp}'}, status=status.HTTP_200_OK)
else: