Get the response body.
This function is an alias for GET_RESPONSE_JSON.
No parameters
List of [Text]
- list variable, that will be filled with all response page's JSON body.Text
Response data.
No return value.
var
RequestBody: Text;
RequestBody := APIScriptRWU.GET_RESPONSE_BODY();
Work with paginated result:
//Go through data of all result pages
var
AllPagesBodyList: List of [Text];
i: Integer;
APIScriptRWU.GET_RESPONSE_BODY(AllPagesBodyList);
for i := 1 to AllPagesBodyList.Count do begin
JSONBody := AllPagesBodyList.Get(i);
// ... process the JSON body of current page
end;