Analyze Attachments
34 min
capabilities this connector provides the following capabilities get attachment name get attachment extension hash attachment is empty is zipfile get size zip unzip write get mimetype actions get attachment name returns the name of the attachment input argument name type required description attachment object required attachment attachment file string optional parameter for get attachment name attachment file name string optional name of the resource input example {"attachment" {"file" "string","file name" "example name"}} output parameter type description attachment name string name of the attachment output example {"attachment name" "string"} get extension returns the extension of the attachment name input argument name type required description attachment object required attachment attachment file string optional parameter for get extension attachment file name string optional name of the resource input example {"attachment" {"file" "string","file name" "example name"}} output parameter type description extension string extension of the attachment name output example {"extension" "string"} hash attachment hash attachment with provided algorithms input argument name type required description attachment object required attachment attachment file string optional parameter for hash attachment attachment file name string optional name of the resource algorithm string optional the hash algorithm input example {"attachment" {"file" "string","file name" "example name"},"algorithm" "md5"} output parameter type description hash string hash of the file output example {"hash" "string"} is empty returns true if the attachment is empty, else false input argument name type required description attachment object required attachment attachment file string optional parameter for is empty attachment file name string optional name of the resource input example {"attachment" {"file" "string","file name" "example name"}} output parameter type description is empty boolean true if the attachment is empty output example {"is empty"\ true} get mimetype & encoding guesses the mimetype and encoding of the file input argument name type required description attachment object required attachment attachment file string optional parameter for get mimetype & encoding attachment file name string optional name of the resource input example {"attachment" {"file" "string","file name" "example name"}} output parameter type description type string type of the attachment encoding string encoding of the attachment output example {"type" "string","encoding" "string"} get size returns the size of the attachment in bytes input argument name type required description attachment object required attachment attachment file string optional parameter for get size attachment file name string optional name of the resource input example {"attachment" {"file" "string","file name" "example name"}} output parameter type description size number size of attachment in bytes output example {"size" 123} unzip attachment extracts attachments form a zipfile input argument name type required description attachment object required attachment zip to extract attachment file string optional parameter for unzip attachment attachment file name string optional name of the resource password string optional password of the zipfile input example {"attachment" {"file" "string","file name" "example name"},"password" "string"} output parameter type description attachments array array of attachments extracted from the zipfile attachments file string output field attachments file attachments file name string name of the resource output example {"attachments" \[]} write attachment writes text to an attachment and returns it input argument name type required description attachment name string required name of the attachment text string required text to write to the attachment input example {"attachment name" "example name","text" "string"} output parameter type description attachment object output field attachment attachment file string output field attachment file attachment file name string name of the resource output example {"attachment" {"file" "string","file name" "example name"}} zip attachments returns the size of the attachment in bytes input argument name type required description attachments array required array of attachments extracted from the zipfile attachments file string optional parameter for zip attachments attachments file name string optional name of the resource attachment name string required name for the new zipfile password string optional password to protect the zipfile compression number optional number between 1 to 9, 1 (more fast) < > 9 (more compress) input example {"attachments" \[{"file" "string","file name" "example name"}],"attachment name" "example name","password" "string","compression" 1} output parameter type description zip object output field zip zip file string output field zip file zip file name string name of the resource output example {"zip" {"file" "string","file name" "example name"}} response headers header description example content type the media type of the resource application/json date the date and time at which the message was originated thu, 01 jan 2024 00 00 00 gmt