1.0.32 • Published 1 month ago

@zappahq/core v1.0.32

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
1 month ago

npm (scoped) npm bundle size (scoped) Libraries.io dependency status for latest release, scoped npm package Snyk Vulnerabilities for npm scoped package jsDelivr hits (npm scoped)

Zappa Core SDK

What is this repository for?

  • Provides core functionality for Zappa including:
    • Device Print
    • Adblock Detection

Usage

React

import { Client } from "@usezappa/core";
const siteKey = "SOME_SITE_KEY";

// Initialize the client with your site key
const zpClient = new Client(siteKey);

// DevicePrint
zpClient
  .GetDevicePrint()
  .then((result) => {
    console.log(result);
  })
  .catch((err) => {
    console.error(err);
  });

// Adblock Enabled?
zpClient
  .GetAdblockDetect()
  .then((res) => {
    console.log(result);
  })
  .catch((err) => {
    console.error(err);
  });

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Zappa Core SDK Test</title>
    <script src="../../dist/index.umd.js" crossorigin></script>
    <script type="module">
      const zpClient = new ZPCore.Client("test");
      zpClient
        .GetDevicePrint(true)
        .then((result) => {
          console.log("Result: ", result);
          let doc = document.getElementById("testdiv");
          doc.innerHTML = "Retrieved data - " + JSON.stringify(result, null, 2);
        })
        .catch((error) => {
          console.error("Error: ", error);
        });
    </script>
  </head>

  <body>
    <h1>Testing Zappa Core SDK</h1>
    <div id="testdiv">Loading</div>
  </body>
</html>
1.0.32

1 month ago

1.0.31

2 months ago

1.0.30

2 months ago

1.0.29

2 months ago

1.0.28

2 months ago

1.0.12

2 months ago

1.0.4

10 months ago

0.1.28

12 months ago

0.1.29

11 months ago

0.1.27

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.1.24

1 year ago

0.1.23

1 year ago

0.1.22

1 year ago

0.1.21

1 year ago

0.1.20

1 year ago

0.1.19

1 year ago

0.1.18

1 year ago

0.1.17

1 year ago

0.1.15

1 year ago

0.1.13

1 year ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago