All docs
This doc
Function |
|
---|---|
Description | Returns all the records which match the given record IDs and the table. |
Output | A JSON String array containing the matching records in the ‘message’ element within the argument of the success callback. |
var recordsInfo = { tableName : "TEST", //table being accessed ids : [ "14399961246350.13125980939205978", "14399961246350.13125980939205999"] //interested ids }; client.getRecordsByIds(recordsInfo, function(data) { console.log (data["message"]); }, function(error) { console.log("error occured: " + error); });
[{ "id":"14399961246350.13125980939205978", "tableName":"TEST","timestamp":1439996124610, "values":{ "column1":"value1", "column2":"value2" } }, { "id":"14399961246350.13125980939205999", "tableName":"TEST","timestamp":1439996124610, "values":{ "column1":"anotherValue1", "column2":"anotherValue2" } } ]