Пример #1
0
 def _send_cots(cots_file_name):
     r = requests.post(
         config["KIRIN_API"] + "/cots",
         data=utils.get_rt_data(cots_file_name).encode("UTF-8"),
         headers={"Content-Type": "application/json;charset=utf-8"},
     )
     r.raise_for_status()
Пример #2
0
 def _send_cots(cots_file_name):
     r = requests.post(
         config['KIRIN_API'] + '/cots',
         data=utils.get_rt_data(cots_file_name).encode('UTF-8'),
         headers={'Content-Type': 'application/json;charset=utf-8'})
     r.raise_for_status()
Пример #3
0
 def _send_cots(cots_file_name):
     r = requests.post(config['KIRIN_API'] + '/cots',
                       data=utils.get_rt_data(cots_file_name).encode('UTF-8'),
                       headers={'Content-Type': 'application/json;charset=utf-8'})
     r.raise_for_status()