Documentation

Getting Started

General Info

Beam

Structural 3D

Section Builder

Member Design

RC Design
General
Code Verification


Connection Design

API

Can't find what you're after?

Node.js

Calling the API in Node.js where structure_data is the JSON Input object.

Example

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();