class UsersMessagesAttachments extends Resource (View source)

The "attachments" collection of methods.

Typical usage is:

 $gmailService = new Google\Service\Gmail(...);
 $attachments = $gmailService->users_messages_attachments;

Methods

get(string $userId, string $messageId, string $id, array $optParams = [])

Gets the specified message attachment. (attachments.get)

Details

MessagePartBody get(string $userId, string $messageId, string $id, array $optParams = [])

Gets the specified message attachment. (attachments.get)

Parameters

string $userId

The user's email address. The special value me can be used to indicate the authenticated user.

string $messageId

The ID of the message containing the attachment.

string $id

The ID of the attachment.

array $optParams

Optional parameters.

Return Value

MessagePartBody

Exceptions

Exception