Inherits from GTLRGmailQuery : GTLRQuery : NSObject
Declared in GTLRGmailQuery.h

Overview

Gets the specified message attachment.

Method: gmail.users.messages.attachments.get

Authorization scope(s): @c kGTLRAuthScopeGmailMailGoogleCom @c kGTLRAuthScopeGmailModify @c kGTLRAuthScopeGmailReadonly

Tasks

Properties

identifier

@property (copy, nullable) NSString *identifier
Discussion

The ID of the attachment.

identifier property maps to ‘id’ in JSON (to avoid Objective C’s ‘id’).

Declared In

GTLRGmailQuery.h

messageId

@property (copy, nullable) NSString *messageId
Discussion

The ID of the message containing the attachment.

Declared In

GTLRGmailQuery.h

userId

@property (copy, nullable) NSString *userId
Discussion

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

Note: If not set, the documented server-side default will be me.

Declared In

GTLRGmailQuery.h

Class Methods

queryWithUserId:messageId:identifier:

+ (instancetype)queryWithUserId:(NSString *)userId messageId:(NSString *)messageId identifier:(NSString *)identifier
Discussion

Fetches a @c GTLRGmail_MessagePartBody.

Gets the specified message attachment.

Parameters

userId

The user’s email address. The special value me can be used to indicate the authenticated user. (Default me)

messageId

The ID of the message containing the attachment.

identifier

The ID of the attachment.

Return Value

GTLRGmailQuery_UsersMessagesAttachmentsGet

Declared In

GTLRGmailQuery.h