Advertisement
Danila_lipatov

Untitled

Sep 20th, 2023 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. apikey = ''
  2.  
  3. # URL_get_data_bulk = ""
  4. headers = {'Content-Type': 'application/json', 'Accept': 'application/json', 'APIKEY': apikey}
  5. URL_get_data_bulk = ""
  6. # params = {
  7. # "api": "string",
  8. # "slice_date": container,
  9. # "actual_date": actual_date
  10. # }
  11. container = [
  12. "2020-09-0112:47:15.628Z",
  13. "2020-10-0112:47:15.628Z",
  14. "2020-11-0112:47:15.628Z",
  15. "2020-12-0112:47:15.628Z",
  16. "2021-01-0112:47:15.628Z",
  17. "2021-02-0112:47:15.628Z",
  18. "2021-03-0112:47:15.628Z",
  19. "2021-04-0112:47:15.628Z",
  20. "2021-05-0112:47:15.628Z",
  21. "2021-06-0112:47:15.628Z",
  22. "2021-07-0112:47:15.628Z",
  23. "2021-08-0112:47:15.628Z",
  24. "2021-09-0112:47:15.628Z"]
  25. params = {
  26. "api": "string",
  27. "slice_date": container,
  28. "actual_date": "2023-08-31T12:47:15.628Z"
  29. }
  30. r = requests.post(url=URL_get_data_bulk, params=params, headers=headers, verify=False)
  31. crm_data = r.json()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement