> >

Web

Overview and Resources

This document is intented to provide a detailed explanation of all configurations and API related to the Device Fingerprinting front-end.

Environment and Requirements

Item
Compatibility IE9+, Chrome, Firefox, Safari, Opera, mainstream mobile browsers, and embedded webview on iOS and Android+

Installation

Import and Initialize JavaScript

<script src="https://static.geetest.com/g5/dfp.js"></script>

Call initDeviceFingerprint function for initialization

  1. Create an appID on the GeeTest dashboard.
  2. “appID” is mandatory during initialization.
    initDeviceFingerprint({appId:'xxxxxxxxxxxxxxx'},function(data){
    // get gee_token
    if(data.status === 'success'){
    data.data.gee_token
    }
    })

    //Example of Successful Request Response
    {
    "status": "success",
    "data": {
    "gee_token": "znqlmmF+XoPIKni/RmECLzEnJhYMKxkN3g1DQGtqdVth2NKTmucUE+ETx4EbAmMGfPcuujQuRn20bL+W4MWJzyXCJI5jUf0vgwTop3+iFnJb9oswpNb+Sl1b7bwevtrXtHWGRDsbKkKCyBmo4Mn8gHphX6bBAZEAUko+CfI0tPo3A+WUwQoEbPJy+D+RdIpqr52Z5KteraDnPEL1NiHxZ3OKpqfiZvDsiuvlPY7QQcQD3LEGGdI0z89rTNQG5C+fHLI0Rd0vXOMtcobEN2esVt5FLaaPHxPq5LsY0SQoQhqjh5zrC+FpKL6Qa9GiTk2asU3RchYE3lkscPYZq07OryaDs1fELaGufCJm5/202tAFpgSJddNQF9yH9jz6WE65prI2NfhSnfxZlvAJijEFi/bhp83ilDsMvt0jYLnAU0sTcRILFTpffduKqujJHn8+"
    }
    }

    //Example of a Failed Request Response
    {
    "status": "error",
    "data": {
    "code": -50101,
    "msg": "not app_id"
    }
    }

Obtaing Results

Submit GeeToken along with business data to the business server, which will then query the results from the Geetest Device Fingerprint service. Please refer to the server integration documentation for details.

Was this helpful?
Send