Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. import requests
  2. import json
  3. with open('C:\\Users\\Bizgaze\\Desktop\\AI\\AI_Events\\csv\\EventXtream.json', 'r') as json_file:
  4. json_load = json.load(json_file)
  5. url = "http://localhost:3088/apis/v4/bizgaze/integrations/json/save/List"
  6. payload1 = json.dumps(json_load)#.replace("]", "").replace("[", "")
  7. print('--------------------------------------------------------------------------')
  8. print(payload1)
  9. headers = {
  10. 'Authorization': 'Stat 22cbfadfa548448bb0b55193bc8e99fa',
  11. 'Content-Type': 'application/json'
  12. }
  13. response = requests.request("POST", url, headers=headers, data=payload1)
  14. print("##############################################################")
  15. print(response.text)