Using Javascript to Manipulate Records Without Tadabase REST API
This method will expose your API credentials, which we highly recommend not doing and recommend looking into our Tadabase Rest API.
You can use this example code snippet to create a new record. You must be sure to update all the field_id’s and API credentials.
var form = new FormData();
form.append("field_35", "From API");
form.append("field_36", "Test 1");
var settings = {
"url": "https://api.tadabase.io/api/v1/data-tables/eykNOvrDY3/records",
"method": "POST",
"timeout": 0,
"headers": {
"X-Tadabase-App-id": "YOUR_APP_ID",
"X-Tadabase-App-Key": "YOUR_APP_KEY",
"X-Tadabase-App-Secret": "YOUR_APP_SECRET",
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function(response) {
console.log(response);
});
We'd love to hear your feedback.