Data Laboratory FSBO API Documentation

Authentication
POST

API Users will be given access, as shown on the sample the users will use them to acquire temporary token to allow them to do transaction in the API.

IMPORTANT:
API Token has a validity period for 10 hours and restircition depending on the user access rights.

https://api.datalaboratory.com/live/public/authenticate
Example Request
[php] “https://api.datalaboratory.com/live/v1/authenticate”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “POST”,
CURLOPT_POSTFIELDS =>”{n “userName”: “userName”,n “password”: “password43221″n}”,
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
[/php]

Body
[php]
{
“token”: “eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJqbCIsImFjY2VzcyI6WyJjdXN0b21lciIsInVzZXIiXSwiZXhwIjoxNTk1Mzk5Mjc4LCJpYXQiOjE1OTUzNjMyNzh9.9Ntulxd8oFdfzUlp8vbatwWRZK3e1XO17tz5KnymaSE”
}
[/php]
Headers
[php]
Date: Tue, 21 Jul 2020 20:27:58 GMT
Server: Apache/2.4.18 (Ubuntu)
Strict-Transport-Security: max-age=63072000; includeSubdomains
X-Frame-Options: DENY
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Content-Type: application/json
Transfer-Encoding: chunked
[/php]