Method GetArrayResponse
Returns data array of entire or partial API response by the given pathUsage
Function GetArrayResponse(
String Path [Optional],
Boolean Report [Optional]
)
Parameters
Path (optional)
Type: String
Default Value: Empty String
Path to the object: User[5].Information.Awards
Report (optional)
Type: Boolean
Default Value: False
Generate report for this step
Returns
Array
Example
VBScript
Server("API Server").Method("GetUsers").Execute
msgbox Server("API Server").Method("GetUsers").GetArrayResponse("[0].Awards", True)
JavaScript
Server("API Server").Method("GetUsers").Execute();
alert(Server("API Server").Method("GetUsers").GetArrayResponse("[0].Awards", true));