Authentication

All API calls need to be authenticated with special token.

One token is created per company.

Token should be in request header variable HTTP_X_PROFITTOKEN.

Request header example with PHP CURL:



    const API_TOKEN = "2938hr9283rh928fhp9238h9823hrp2";
    const API_URL = "https:api.intellisoft.ee/demo/units";

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, API_URL);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

    //setup token
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-ProfitToken: ' . API_TOKEN));

    //get data
    $data = json_decode(curl_exec($ch));

    print_r($data);
    curl_close($ch);



Profit API v 0.1.4.2 beta, © Intellisoft OÜ 2017 - 2024