Hi everyone,
I have had a skim through the existing examples of using the Sentinel Hub API and have used them successfully in a python script. I was wondering whether there is an existing way to replace the hard-coded EvalScript in the JSON payload with posting instead an EvalScript file including the JavaScript code. Is that possible?
For example:
with open(“example_evalscript.js”, “r”) as f:
response=requests.post(api_endpoint, headers=headers, json=json, files={example_evalscript.js: f})
When I try the above I am getting a 500 HTTP response status code which means that very likely this functionality doesn’t exist, but if not is there a work-around?
Kind regards,
D.