File ManagerAccount SettingsAccessing The SoftwareSupportTeam ManagementFull Demos
Certification
Calling the API in Node.js where structure_data is the JSON Input object.
var http = require("http"); var options = { hostname: 'solver.skyciv.com', port: 80, path: '/structural/v2.php', method: 'POST', headers: { 'Content-Type': 'application/json', } }; var req = http.request(options, function(res){ //console.log('Status: ' + res.statusCode); //console.log('Headers: ' + JSON.stringify(res.headers)); res.setEncoding('utf8'); res.on('data',function(body){ console.log(body); }); }); req.on('error', function(e){ console.log('problem with request: ' + e.message); }); //Send the object as a JSON string req.write(JSON.stringify(structure_data)); req.end();