class SpacesMessagesAttachments extends Resource (View source)

The "attachments" collection of methods.

Typical usage is:

 $chatService = new Google\Service\HangoutsChat(...);
 $attachments = $chatService->spaces_messages_attachments;

Methods

get(string $name, array $optParams = [])

Gets the metadata of a message attachment. The attachment data is fetched using the media API. For an example, see Get metadata about a message attachment. Requires app authentication. (attachments.get)

Details

Attachment get(string $name, array $optParams = [])

Gets the metadata of a message attachment. The attachment data is fetched using the media API. For an example, see Get metadata about a message attachment. Requires app authentication. (attachments.get)

Parameters

string $name

Required. Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment}.

array $optParams

Optional parameters.

Return Value

Attachment

Exceptions

Exception