import requests

url = "{{{service.url}}}"
payload = {{{exampleJSON}}}
response = requests.post(url, json=payload)

{{#hasFileOutput}}
with open("{{output}}", "wb") as out:
    out.write(response.content)
{{/hasFileOutput}}{{^hasFileOutput}}
print(response.text)
{{/hasFileOutput}}
