Instructions for developers

This is for software developers only.

Following code snapshots demonstrates the main features of Ambersoft app. Feel free to use them in your application.

User verification

$url = "https://app.ambersoft.eu/api/v1/verify?token=".$_GET["token"];
$options = ["http" => ["method" => "GET", "header" => "apikey: /* your key here */\r\n"]];
$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
$user = json_decode($response, true);
if ($user == null) exit;

Application setup

<script src="https://app.ambersoft.eu/js/jquery-3.4.1.min.js" type="text/javascript"></script>
<script src="https://app.ambersoft.eu/js/ambersoft.app.v1.js" type="text/javascript"></script>

Reading location


			
			
			

Taking a picture


			
			

Getting a signature


			
			

Styling

<link href="https://app.ambersoft.eu/css/bootstrap-4.4.1.min.css" rel="stylesheet">
<link href="https://app.ambersoft.eu/css/ambersoft.v1.css" rel="stylesheet">
...
Ambersoft.header("Name of your application");
Ambersoft.showProgress();
Ambersoft.hideProgress();

Sharing