Documentation







RC Design
General
Code Verification




Can't find what you're after?

Python

Calling the API in Python where structure_data is the JSON Input object.

Example

import json
import httplib

headers = { 'Content-Type' : 'application/json' };
conn = httplib.HTTPConnection('solver.skyciv.com', 80); # don't add http or https to this URL

structure_data = json.dumps(structure_data, separators=(',', ':')); # convert to JSON String

conn.request('POST', '/structural/v2.php', structure_data, headers);
response = conn.getresponse();
response_data = response.read();
conn.close();

print(response_data);