gmail v0.1.20 Gmail.MessageAttachment

An email message attachment.

Link to this section Summary

Functions

Gmail API documentation: https://developers.google.com/gmail/api/v1/reference/users/messages/attachments

Converts a Gmail API attachment resource into a local struct

Gets the specified attachment

Handles an attachment resource response from the Gmail API

Link to this section Types

Link to this type t()
t() :: %Gmail.MessageAttachment{
  attachmentId: term(),
  data: term(),
  size: term()
}

Link to this section Functions

Link to this function %Gmail.MessageAttachment{} (struct)

Gmail API documentation: https://developers.google.com/gmail/api/v1/reference/users/messages/attachments

Link to this function convert(message)
convert(map()) :: Gmail.MessageAttachment.t()

Converts a Gmail API attachment resource into a local struct.

Link to this function get(user_id, message_id, id)
get(String.t(), String.t(), String.t()) :: {atom(), String.t(), String.t()}

Gets the specified attachment.

Gmail API documentation: https://developers.google.com/gmail/api/v1/reference/users/messages/attachments/get

Link to this function handle_attachment_response(response)

Handles an attachment resource response from the Gmail API.