1.0.11 • Published 4 years ago

botprotect v1.0.11

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

BotProtect API

JavaScript API for BotProtect APIv1

Installation

$ npm install botprotect

Usage

You must be a registered client to use this API. Please request a demo on our website. Already registered? Here is how you use it!

To initiate the library:

const { BotProtectApi } = require('botprotect');

const BotProtect = new BotProtectApi({
	publicKey: 'YOUR_PUBLIC_KEY', // String
	privateKey: 'YOUR_PRIVATE_KEY', // String
	showFingerprint: true // Boolean
});

To verify user token:

Examples

ASYNC

(async () => {
	let res = await BotProtect.verify('USER_TOKEN');
	console.log(res);
})();

SYNC

BotProtect.verify('USER_TOKEN', (res) => {
	console.log(res);
});

RETURN

{
    "human": BOOLEAN,
    "clientIp": STRING,
    "isRdp": BOOLEAN,
    "isVNCServer": BOOLEAN,
    "solveTime": INT,
    "userAgent": STRING,
    "deviceBrowserFingerprint": STRING
}

Learn more on our api page.

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago