get, array, response, api, request, response, send, soap, rest, get, post, put, delete

Method GetArrayResponse

API

Returns data array of entire or partial API response by the given path

Watch this video to learn how to use this method

Have a problem with playback?
GetArrayResponse method Returns data array of entire or partial API response by the given path. Prior to use this function you need to insert Execute method. The input of this method is optional "path" parameter. The Output - is the array with data. Lets get array of user's awards. To get more information about path usage refer separate video how to use paths for getting API method response. We will use messagebox to demonstrate the output.

Usage

Function GetArrayResponse(
    String Path [Optional]
)

Method

GetArray...ponse

[0].Awards

Path [Optional]

Parameters

Path (optional)

Type: String

Default Value: Empty String

Path to the object: User[5].Information.Awards

Returns

Array

Example

VBScript

Server("API Server").Method("GetUsers").Execute
msgbox Server("API Server").Method("GetUsers").GetArrayResponse("[0].Awards")

JavaScript

Server("API Server").Method("GetUsers").Execute();
alert(Server("API Server").Method("GetUsers").GetArrayResponse("[0].Awards"));

GetUsers

Execute

Variable

awards

GetArray...ponse

[0].Awards

GetUsers

Zap.Comm...Box

Zap.Var...("awards")

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227