This is a fairly basic question (i believe), but I've been baning my head on this.
im using zenpy to talk to the zendesk api. I get a ticket that consists of multiple email messages between the customer and the support desk.
I am only able to open the description field (initial message).
using curl, I do get the comments:
curl https://{project}.zendesk.com/api/v2/tickets/10001/comments
gets me the comment data.
however:
from zenpy import Zenpy
client = Zenpy(**creds)
ticket = client.tickets(id=10001)
print(ticket.comment)
gets me an error:
AttributeError: 'Ticket' object has no attribute 'comment'
EDIT
ok I was being an idiot. the way to access comments is right in the zenpy documentation.
client.tickets.comments(ticket=10001)
returns a comments object that contains all the data
