import requests
def new_order():
params = {
"secret": "dyYnKa7d5Rz4esE72nyf66EkR", # ключ API
"street": "Мира 3а",
"phone": "79090000501",
"descr": "Быстрее!",
"datetime": "2024-03-14 20:14:14",
"product[0]": "1",
"product_kol[0]": "57",
"product[1]": "3",
"product_kol[1]": "0",
}
data = params.copy()
# print(data)
url = "https://app.frontpad.ru/api/index.php?new_order"
response = requests.post(url, data=data)
print(data)
# Результат
print(response.text)
new_order()