############### Optional ###############
# Gets the application ID from the previous request
with open("softcheckDemo.json") as f:
softcheckResponse = json.load(f)
applicationID = softcheckResponse['id']
############# End Optional ##############
### Replace <token> with your API Key
headers = { "Authorization": "Bearer <token>" }
### Replace <URL> with the URL that corresponds to your industry and
### append the application ID
# Sends the HTTP request to the API via GET
result = requests.get(url, headers=headers)
############### Optional ###############
# Brings errors to the forefront
response.raise_for_status()
# Writes the contents of the report to a file
# named "resultsSoftcheckDemo.json"
with open("resultsSoftcheckDemo.json", "w") as f:
############# End Optional ##############