gmail Adaptor developer README.md
Source: https://github.com/OpenFn/adaptors/tree/main/packages/gmail
Gmail adaptor
Send and receive Gmail messages with file attachments using simple, configurable logic.
getContentsFromMessages
This function is used to extract specific content from Gmail messages using custom desired "content" configurations. The sample code specifies how to query Gmail for messages and identify desired attachments and metadata.
Without any parameters, the getContentsFromMessages()
function will return an array containing every message in the account of the authenticated user including from
, date
and subject
.
A number of options are available to isolated the desired messages and to customize the output.
Parameters
An options
object can configure the results of the function call. Optional parameters include: contents
, query
, email
, processedIds
, maxResults