get, request, attachment, type, api, request, response, send, soap, rest, get, post, put, delete

Method GetRequestAttachmentType

API

Gets Request Attachment MIME Type value

Watch this video to learn how to use this method

Have a problem with playback?
GetRequestAttachmentType returns API request attachment type The input is string Name Let's see Sum API method We can see there is one attachment configured Name is Test, type is "application/octet-stream" So we will use GetRequestAttachmentType along with messagebox to read and output this value during runtime. Run the script and we can see the message box shows "application/octet-stream"

Usage

Function GetRequestAttachmentType(
    String Name
)

CreateBook

GetReq...Type

book

Name

Parameters

Name

Type: String

The name of the Attachment

Returns

Attachment MIME Type

Example

VBScript

msgbox Server("API Server").Method("CreateBook").GetRequestAttachmentType("book")

JavaScript

alert(Server("API Server").Method("CreateBook").GetRequestAttachmentType("book"));

Variable

type

GetReq...Type

book

Method

Zap.Comm...Box

Zap.Var...("type")

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227