Hi,
After receiving status_code = 200, what is the correct way to pull the data based on JobId in my code below?
print(f'Received status code which is not 202: {request_status}')
# Successful
if request_status == 200:
print("Received status code 200")
keys = resp.json().keys()
if 'JobId' in keys:
JobId = resp.json()['JobId']
extract_url = "
https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/RawExtractionResults"
import pdb
pdb.set_trace()
resp1 = requests.get(extract_url + "('" + JobId + "')/$value", headers=request_headers)
print("result:", resp1)
return resp1
else:
print(keys)
print(resp.json())