public class GetAttachmentOperation extends Object
| Constructor and Description |
|---|
GetAttachmentOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
getAttachment(GmailConfiguration config,
com.mulesoft.connectivity.rest.commons.api.connection.RestConnection connection,
String messageId,
String attachmentId,
String fileName,
String mimeType,
com.mulesoft.connectivity.rest.commons.api.operation.EntityRequestParameters parameters,
com.mulesoft.connectivity.rest.commons.api.operation.ConfigurationOverrides overrides,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<EmailAttachment,Void> completionCallback)
Gets the specified message attachment content.
|
@Ignore @Throws(value=com.mulesoft.connectivity.rest.commons.api.error.RequestErrorTypeProvider.class) @DisplayName(value="Get Attachment Citizen") @Summary(value="Gets the specified message attachment content.") @SampleData(value=GetAttachmentSampleDataProvider.class) @OutputResolver(output=GetAttachmentOutputMetadataResolver.class) @MediaType(value="*/*") public void getAttachment(@Config GmailConfiguration config, @Connection com.mulesoft.connectivity.rest.commons.api.connection.RestConnection connection, @DisplayName(value="Message Id") @Summary(value="The ID of the message containing the attachment.") String messageId, @DisplayName(value="Attachment Id") @Summary(value="The ID of the attachment.") String attachmentId, @DisplayName(value="Attachment File Name") @Summary(value="The attachment file name with extension") String fileName, @DisplayName(value="Attachment MIME Type") @Summary(value="The attachment MIME type") String mimeType, @ParameterGroup(name="Request Parameters") com.mulesoft.connectivity.rest.commons.api.operation.EntityRequestParameters parameters, @ParameterGroup(name="Connector Overrides") com.mulesoft.connectivity.rest.commons.api.operation.ConfigurationOverrides overrides, org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper, org.mule.runtime.extension.api.runtime.process.CompletionCallback<EmailAttachment,Void> completionCallback)
This operation makes an HTTP GET request to the /gmail/v1/users/{userId}/messages/{messageId}/attachments/{attId} endpoint returns the binary content of the specified attachment
config - the configuration to useconnection - the connection to usemessageId - unique identifier of the message containing the attachmentattachmentId - unique identifier of the attachment to retrieveparameters - the EntityRequestParametersoverrides - the ConfigurationOverridesstreamingHelper - the StreamingHelperCopyright © 2023 MuleSoft, Inc.. All rights reserved.