facetoe / zenpy

Python wrapper for the Zendesk API
GNU General Public License v3.0
344 stars 162 forks source link

Question: where in the ticket data structure do you find ticket attachments, and then download them. #635

Closed topherchung closed 4 months ago

topherchung commented 4 months ago

Hi,

i'm looking through the returned ticket data structure, and I don't see a field(s) that indicate that zendesk ticket has attachements, how to get the data required to retrieve them, and then download them. Searching isn't yielding any examples, and code base isn't obvious as how to do it.

Thanks, Chris Chung

Ptr314 commented 4 months ago

Hi @topherchung !

Attachments belong to comments, so you need to get them - https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_comments/

wf-tchung commented 4 months ago

Hi @Ptr314, Thank you!