Analyze Attachments
33 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 file string optional parameter for get attachment name file name string optional name of the resource output parameter type description attachment name string name of the attachment example \[ { "attachment name" "string" } ] get extension returns the extension of the attachment name input argument name type required description attachment object required attachment file string optional parameter for get extension file name string optional name of the resource output parameter type description extension string extension of the attachment name example \[ { "extension" "string" } ] hash attachment hash attachment with provided algorithms input argument name type required description attachment object required attachment file string optional parameter for hash attachment file name string optional name of the resource algorithm string optional the hash algorithm output parameter type description hash string hash of the file example \[ { "hash" "string" } ] is empty returns true if the attachment is empty, else false input argument name type required description attachment object required attachment file string optional parameter for is empty file name string optional name of the resource output parameter type description is empty boolean true if the attachment is empty 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 file string optional parameter for get mimetype & encoding file name string optional name of the resource output parameter type description type string type of the attachment encoding string encoding of the attachment 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 file string optional parameter for get size file name string optional name of the resource output parameter type description size number size of attachment in bytes example \[ { "size" 123 } ] unzip attachment extracts attachments form a zipfile input argument name type required description attachment object required attachment zip to extract file string optional parameter for unzip attachment file name string optional name of the resource password string optional password of the zipfile output parameter type description attachments array array of attachments extracted from the zipfile file string output field file file name string name of the resource 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 output parameter type description attachment object output field attachment file string output field file file name string name of the resource 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 file string optional parameter for zip 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) output parameter type description zip object output field zip file string output field file file name string name of the resource example \[ { "zip" { "file" "string", "file name" "example name" } } ]