1.0.38 • Published 4 months ago
@zappahq/core v1.0.38
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.38
4 months ago
1.0.37
4 months ago
1.0.36
4 months ago
1.0.35
5 months ago
1.0.34
5 months ago
1.0.32
1 year ago
1.0.31
1 year ago
1.0.30
1 year ago
1.0.29
1 year ago
1.0.28
1 year ago
1.0.12
1 year ago
1.0.4
2 years ago
0.1.28
2 years ago
0.1.29
2 years ago
0.1.27
2 years ago
0.1.25
2 years ago
0.1.26
2 years ago
0.1.24
2 years ago
0.1.23
2 years ago
0.1.22
2 years ago
0.1.21
3 years ago
0.1.20
3 years ago
0.1.19
3 years ago
0.1.18
3 years ago
0.1.17
3 years ago
0.1.15
3 years ago
0.1.13
3 years ago
0.1.12
3 years ago
0.1.11
3 years ago
0.1.10
3 years ago
0.1.9
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago