Follow these steps to integrate the DeviceAssure JavaScript library into your web application.
Before You Begin
You'll need the DeviceAssure library and a licence key. To obtain these:
- Visit the DeviceAssure product page and click "Get Evaluation"
- Log in or create a DeviceAtlas account and download the library
- Your licence key will be sent to you via email
Already have a licence? Log in to download the library from this page.
Documentation
For comprehensive integration guides, API references, and advanced configuration options, visit our documentation:
Integration Steps
Below outlines the high-level integration steps. More detailed steps and code examples for all integration options are included in the downloadable package below.
1. Include the Library
Add the DeviceAssure JavaScript library to your webpage:
<script src="path/to/deviceAssure.min.js" defer async onload="onDeviceAssureLoad()"></script>
2. Validate the Device
Now that the library is embedded, call the load method with your licence key and handle the response:
function onDeviceAssureLoad() {
DeviceAssure.load({
licence: 'YOUR_LICENCE_KEY',
onSuccess: function(res) {
var data = JSON.parse(res.response);
console.log(data.result); // "AUTHENTIC"
},
onError: function(error) {
// Handle error
}
});
}
Download
The package contains the DeviceAssure JavaScript library, sample application with code examples for all integration options, and documentation.
Download DeviceAssure Web Library