Skip to content

Small improvement of the documentation #52

@jbiechele

Description

@jbiechele

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions