gmail v0.1.17 Gmail.MessageAttachment

An email message attachment.

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

Types

t()
t() :: %Gmail.MessageAttachment{attachmentId: term, data: term, size: term}

Functions

__struct__()

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

convert(message)
convert(map) :: Gmail.MessageAttachment.t

Converts a Gmail API attachment resource into a local struct.

get(user_id, message_id, id)

Gets the specified attachment.

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

handle_attachment_response(response)

Handles an attachment resource response from the Gmail API.