@segmentik/sdk-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.33 • Public • Published

Segmentik SDK for Javascript

This library can be implemented only in the frontend, it is not for server use. Make sure you have an API key before integrating:

  1. Register and login to the dashboard
  2. Navigate on the sidebar to "Integration"
  3. Copy the API Key

Getting started

npm i @segmentik/sdk-client

Usage:

import Segmentik from '@segmentik/sdk-client';

const sg = Segmentik.load({
	apiKey: 'API-KEY-HERE'
});
sg.then(session => session.detect())
  .then(data => console.log(data.detectionId, data.visitorId));

Alternatively, you can install from a CDN.

The SDK responds with detectionId and visitorId:

  • detectionId - An identifier used for querying in the backend to get the full detection details (bot detection, spoof detection etc.)
  • visitorId - A unique and persistent identifier for the user

Requirements

  • Node.js > 14

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.330latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.330
1.0.320
1.0.310
1.0.300
1.0.290
1.0.280
1.0.270
1.0.260
1.0.250
1.0.240
1.0.230
1.0.220
1.0.210
1.0.200
1.0.160
1.0.140
1.0.120
1.0.100
1.0.80
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @segmentik/sdk-client

Weekly Downloads

0

Version

1.0.33

License

ISC

Unpacked Size

14.1 kB

Total Files

8

Last publish

Collaborators

  • evyros