API - Basic Usage

Method #1: The xmlfile approach

Let Acumulus get your local XML file.
Place all the necessary data in a (temporary) XML file that can be accessed by Acumulus on your local location. Example:

or when HTTP-auth is in place:

Process your XML-data by using the following url:

Do not forget to escape your XML-control characters!

Method #2: The xmlstring approach

Post all the data straight into the API.
Example: Using cURL and PHP.

    $xml_string = "<myxml>......</myxml>";
    $xml_string = urlencode($xml_string);
    $url = "https://api.sielsystems.nl/acumulus/stable/path/to/api_call_used.php";
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_SSLVERSION, "CURL_SSLVERSION_TLSv1_2");
    curl_setopt($ch, CURLOPT_POSTFIELDS, "xmlstring=$xml_string");
    curl_setopt($ch, CURLOPT_TIMEOUT, 30);
Do not forget to escape your XML-control characters!
  htmlentities($value_xmlfield, ENT_XML1, "UTF-8");