1.0.4 • Published 12 months ago

@pocketcdp/pocket-for-node v1.0.4

Weekly downloads
-
License
PRIVATE
Repository
-
Last release
12 months ago

Library for server actions to interact with your pocketCDP account

Getting started

npm i @pocketcdp/pocket-for-node

Usage

import PocketCDP from "pocketcdp";

const pocketCDP = new PocketCDP({
  apiKey: process.env.POCKET_API_BACKEND_KEY,
  // verbose: true,
  accountId: process.env.POCKET_API_ACCOUNT_ID,
  sourceId: process.env.POCKET_API_SOURCE_ID,
});

try {
  responseFromPocket = await pocketCDP.identify({
    email: email as string,
    deviceId: pocketContext?.pocketClient,
    acceptedEmailCommunications: true,
    customUserProperties: {
      "subscribed-to-beta-waitlist": "true",
    },
  });
} catch (e) {
  console.info("Error in identify", e);
}
1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago