I am running the script displayed here:
https://github.com/LSEG-API-Samples/Example.RDPAPI.Python.IntroductionToFilings/blob/main/IntroToFilings.ipynb
It works fine until:
# Define Helper Function retrieveURL
def retrieveURL(token, retrievalParameters):
ENDPOINT_DOC_RETRIEVAL = RDP_BASE_URL+'/data/filings'+RDP_FILINGS_VERSION + '/retrieval/search/' + retrievalParameters
headers = {
"Authorization": "Bearer " + token,
"X-API-Key": "155d9dbf-f0ac-46d9-8b77-f7f6dcd238f8",
"ClientID" : "api_playground"
}
...
# Retrieve URL by FilingId
jsonFullResp = retrieveURL(accessToken,'filingId/97661417885')
where I get:
Next we retrieve: https://api.refinitiv.com/data/filings/v1/retrieval/search/filingId/97661417885
Response status code =403
Questions:
1) Why does the author of that post set the ClientID to api_playground? My understanding of GraphQL playgrounds is that they serve to try things and to understand data structure, not to launch downloads of filings via systematic API access.
2) Why do I get the 403 error? I also tried substituting the X-API-Key and ClientID with my credentials that worked well further up the code when I was obtaining the token, but same result.
Thank you.