DmitrMakeev commited on
Commit
804b62f
·
verified ·
1 Parent(s): 8ebef50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -9,10 +9,7 @@ token = os.getenv('token') # Ваш токен
9
  api_key = os.getenv('api_key') # Ваш
10
 
11
 
12
- headers = {
13
- 'Authorization': f'Bearer {token}',
14
- 'Content-Type': 'application/json'
15
- }
16
 
17
 
18
 
@@ -199,7 +196,10 @@ def send_request(list_id, email, phone, name, param_name, param_phone, pr5, pr4,
199
  ]
200
  }
201
 
202
-
 
 
 
203
  response = requests.post(f"{base_url}/email/lists/{list_id}/recipients", json=data, headers=headers)
204
  return response.json()
205
 
 
9
  api_key = os.getenv('api_key') # Ваш
10
 
11
 
12
+
 
 
 
13
 
14
 
15
 
 
196
  ]
197
  }
198
 
199
+ headers = {
200
+ 'Authorization': f'Bearer {token}',
201
+ 'Content-Type': 'application/json'
202
+ }
203
  response = requests.post(f"{base_url}/email/lists/{list_id}/recipients", json=data, headers=headers)
204
  return response.json()
205