pocket-for-node
v1.0.0
Published
pocketCDP node library
Downloads
4
Readme
Library for server actions to interact with your pocketCDP account
Getting started
npm install pocketcdp
Usage
const API = require("./dist/index");
try {
const pocketCDP = new API.default({
apiKey: "API_KEY",
verbose: true,
apiURL: "http://localhost:5002",
});
pocketCDP.track({ data: "value" });
} catch (e) {
console.log(e);
}
TODOs:
- [ ] Get event type definitions.
- [ ] Add the event type definiton endpoint to the public-API.