At this moment we do not offer client side API code because the Automated Analytics web service is extremely easy to use (see bottom of this page). The following web service methods are currently available:
To upload your transactions you must first define the attributes that are accompanied by every business transaction (i.e. things like quantity, price, customer, etc.). Once you have defined all the attributes, you can create a new transaction by specifying its definition (consisting of a business transaction date and the primary key that you use in your company database). Finally, you are able to attach data values (belonging to pre-specified attributes) to the transactions that have been defined.
In PHP it is very easy to use the GET and POST requests described above. If you are not familiar with cURL you can also execute GET requests through file_get_contents. To use POST requests with file_get_contents it is possible to define a stream as illustrated in the following code snippet:
$postdata = http_build_query( array( 'var1' => 'some content', 'var2' => 'doh' ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $result = file_get_contents('https://api.biganalytics.eu/?call=.....', false, $context);