Just a small additional information for section "Fetching content of ticket article attachments",
where is mentioned:
$attachment_content = $ticket_article->getAttachmentContent(23);
Additonal information:
"The output of $ticket_article->getAttachmentContent() is a GuzzleHttp\Psr7\Stream Object. To access the content ("body") of this object, use
$guzzle_contents = $attachment_content->getContents();
"
It took me a while to figure out how to access the "body" or content of the GuzzleHttp\Psr7\Stream object for further processing. Maybe this addition to the documentation can save someone time.
By the way thank you for the great PHP client for Zammad API.
Just a small additional information for section "Fetching content of ticket article attachments",
where is mentioned:
$attachment_content = $ticket_article->getAttachmentContent(23);Additonal information:
"The output of $ticket_article->getAttachmentContent() is a GuzzleHttp\Psr7\Stream Object. To access the content ("body") of this object, use
$guzzle_contents = $attachment_content->getContents();"
It took me a while to figure out how to access the "body" or content of the GuzzleHttp\Psr7\Stream object for further processing. Maybe this addition to the documentation can save someone time.
By the way thank you for the great PHP client for Zammad API.