has, response, request, send, soap, rest, get, post, put, delete

Method HasResponse

API

Checks if methos has a ready response

Watch this video to learn how to use this method

Have a problem with playback?
HasResponse checks if API methos has a valid response. The Output is boolean - true if response is presented and false if not. Lets call HasResponse method prior to Execute method call. We will use messagebox to demonstrate the output. We can see the output is false. Lets call this method after Execute method. The output is true now.

Usage

Function HasResponse()

GetBookById

HasResponse

Parameters

This method does not take parameters

Returns

True if response is not null

Example

VBScript

' Execute method if doesn't have response and get string response
If NOT Server("API Server").Method("GetBookById").HasResponse() Then
    Server("API Server").Method("GetBookById").Execute
End If

msgbox Server("API Server").Method("GetBookById").GetStringResponse()

JavaScript

// Execute method if doesn't have response and get string response
if (!Server("API Server").Method("GetBookById").HasResponse()) {
    Server("API Server").Method("GetBookById").Execute();
}

alert(Server("API Server").Method("GetBookById").GetStringResponse());

GetBookById

HasResponse

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227