headers = {'Content-Type': 'application/json'}
try:
response = requests.post(url, data=data, headers=headers)
result = response.json()
logger.debug('The result is: %s', result)
headers = {'Content-Type': 'application/json'}
try:
response = requests.post(url, data=data, headers=headers)
result = response.json()
logger.debug('The result is: %s', result)