0.1.6 • Published 9 months ago
binterly-web-sdk v0.1.6
Binterly Web SDK
The Binterly JavaScript SDK Library is a set of methods attached to a global binterly object intended to be used by websites wishing to send data to Binterly projects.
For more information, please visit binterly.com
Installation
npm install binterly-web-sdk
API Reference
Health Check
To check weather the Binterly SDK is loaded, you can call the healthCheck method. This method will return a string "OK" indicating if the SDK is loaded or not.
import { healthCheck } from 'binterly-web-sdk';
or
import * as binterly from 'binterly-web-sdk';
binterly.healthCheck();
Evaluate
import { evaluate } from 'binterly-web-sdk';
or
import * as binterly from 'binterly-web-sdk';
binterly.evaluate();
Evaluate returns a promise that resolves to a string indicating browser fingerprint id.