Request
opjs()
The opjs()
function collects the browser fingerprint and returns a Promise that resolves to a response object.
Syntax
opjs({ API_KEY: 'my-api-key' }).then(fingerprint => {
// Handle the fingerprint object
});
Parameters
- config: An object containing configuration properties.
- API_KEY (string, required) – Your unique API key used to authenticate the request.
Returns
A Promise that resolves to a response object.
Response Object Structure
The Promise will result in an object with the following structure:
{
"clusterUUID": "AB-CDE-FGH-IJK",
"uniquenessScore": 5,
"botScore": 1,
"browserTraits": {
"isIncognito": false,
"hasCanvasNoise": false,
"possibleCountryCodes": ["US"]
},
"hash": "484f9fd6ac89ab21042fd7540bbbe95e6453433ae0111b945d86b6d0ed98e616",
"authToken": "117756340268441600"
}