I need a Zapier Python step to fetch only non-public ticket comments from Zendesk. My current attempt fails. How should I get this working?
import requests
endpoint = "https://example.zendesk.com/api/v2/tickets/5678/comments.json"
headers = {
"Content-Type": "application/json",
"Authorization": "Basic bXl1c2VyOm15cGFzcw=="
}
result = requests.get(endpoint, headers=headers)
print(result.text)