* $chatService = new Google\Service\HangoutsChat(...); * $attachments = $chatService->spaces_messages_attachments; * */ class SpacesMessagesAttachments extends \Google\Service\Resource { /** * Gets the metadata of a message attachment. The attachment data is fetched * using the [media API](https://developers.google.com/chat/api/reference/rest/v * 1/media/download). Requires [service account * authentication](https://developers.google.com/chat/api/guides/auth/service- * accounts). (attachments.get) * * @param string $name Required. Resource name of the attachment, in the form * "spaces/messages/attachments". * @param array $optParams Optional parameters. * @return Attachment */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], Attachment::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(SpacesMessagesAttachments::class, 'Google_Service_HangoutsChat_Resource_SpacesMessagesAttachments');