Web Library server 2 server sample page

This page doesn't make a device check call to the DeviceAssure API on page load. Click 'Get Data' to fetch data to get the payload.

To enable the ServerToServer functionality add serverToServer: true to the DeviceValidation options before loading the dv.min.js.

Example
                
                    <script type="text/javascript">
                        DeviceValidation = {
                            options: {
                                licence: '<LICENCE_KEY>', // Just replace this with your licence key/token
                                serverToServer: true
                            }
                        };
                    </script>
                    <script src="../dist/dv.min.js" type="text/javascript"></script>
                
            
To get the properties
                    
                        function callBack(collectedData) {
                            var payload = collectedData;
                            // Proceed with your response or perhaps use our DeviceValidation.check() method.
                        };
                        DeviceValidation.getData(callBack);

                        or

                        var payload = DeviceValidation.getData();