DmitrMakeev
commited on
Commit
•
63e0f3c
1
Parent(s):
741937c
Update app.py
Browse files
app.py
CHANGED
@@ -1642,18 +1642,10 @@ def verify_phone_number(phone_number):
|
|
1642 |
'Content-Type': 'application/json'
|
1643 |
}
|
1644 |
|
1645 |
-
# Выводим URL и payload для отладки
|
1646 |
-
print("Request URL:", full_url_ver)
|
1647 |
-
print("Request Payload:", payload)
|
1648 |
-
|
1649 |
# Отправляем POST-запрос
|
1650 |
response = requests.post(full_url_ver, headers=headers, data=payload)
|
1651 |
|
1652 |
-
#
|
1653 |
-
print("Response Status Code:", response.status_code)
|
1654 |
-
print("Response Body:", response.text)
|
1655 |
-
|
1656 |
-
# Возвращаем полный ответ от сервера
|
1657 |
return response.text
|
1658 |
else:
|
1659 |
return "Verification not started"
|
|
|
1642 |
'Content-Type': 'application/json'
|
1643 |
}
|
1644 |
|
|
|
|
|
|
|
|
|
1645 |
# Отправляем POST-запрос
|
1646 |
response = requests.post(full_url_ver, headers=headers, data=payload)
|
1647 |
|
1648 |
+
# Возвращаем текст ответа от сервера
|
|
|
|
|
|
|
|
|
1649 |
return response.text
|
1650 |
else:
|
1651 |
return "Verification not started"
|