SLIDE 123 $getData
args data – an array where each element is a map with two properties: name, for the name of the data, and type, which can be "scalar" or "matrix". Output A map with a property called "data". This property contains the data retrieved from Stata.
{ "status": "ok", "data": [ 21, { "row": 1, "cols": 3, "data": [1, 2, 3] } } }
Example Request: Response:
{ "job": [{ "method": "$getData", "args": { "data": [ { "name": "x", "type": "scalar"}, { "name": "y", "type": "matrix"} ] } } ]} }
Request: Response: Description Get data (scalar or matrix) from Stata. This method is available from version 0.2.