12345678910111213141516 |
- import requests
- import json
- with open('C:\\Users\\Bizgaze\\Desktop\\AI\\AI_Events\\csv\\EventXtream.json', 'r') as json_file:
- json_load = json.load(json_file)
- url = "http://localhost:3088/apis/v4/bizgaze/integrations/json/save/List"
-
- payload1 = json.dumps(json_load)#.replace("]", "").replace("[", "")
- print('--------------------------------------------------------------------------')
- print(payload1)
- headers = {
- 'Authorization': 'Stat 22cbfadfa548448bb0b55193bc8e99fa',
- 'Content-Type': 'application/json'
- }
- response = requests.request("POST", url, headers=headers, data=payload1)
- print("##############################################################")
- print(response.text)
|