Open Darrrren opened 2 years ago
@Darrrren - Sorry this has sat so long. 😅 Is this still a problem?
There's definitely an issue.
Using TicketAttachments()->findById($id)
In TicketAttachmentEntity->fromResponse() the response returned from getBody() includes ["items"] (plural) and the isset() === false is testing against ['item']; throwing the "Missing item key in response" exception.
returning $responseArray["items"][0] of course works, but that wouldn't be the best way to handle an array of items.
TicketAttachmentCollection also has no data for me too as Darrrren pointed out.
When requesting a TicketAttachment, the fields returned and their contents are all correct. However the
data:
field isnull
Here's an example response:
When querying the API directly, the data field contains the expected data:
Request:
Response: