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()
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()
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()