JavaScript Samples

The following sample helps you extend Contineo capabilities:

  1. Data Model APIs - Search, Insert, Update, Delete

  2. Execute SQL query

  3. Call other API

  4. Send Email

  5. Send SMS

  6. Send HTTP Request

  7. Download/Upload from S3


// Let us assume that the name of SQL is Query Get Current Sensor Data// The Resource ID is 'querygetcurrentsensordata'var responseHandler = {
data: data,
processResponse(response) {
console.log("response :" + JSON.stringify(response));
if (response.result) {
updateModelItemState(data, "Coviddatadetails", data.Coviddatadetails, false);
}
}
};
 
executeAppAPI("getversionforgauge", {
parameters: {}
},
null,
responseHandler.processResponse);