Socket
Book a DemoInstallSign in
Socket

@knocklabs/node-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knocklabs/node-sdk

Knock

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Knock Node SDK

Node client for interacting with the Knock API, designed to be integrated into your API.

Usage

const client = new Knock(apiKey, options);

client.identify({
  user_id: user.id,
  properties: {
    name: user.name,
    email: user.email,
  },
});

client.track({
  user_id: user.id,
  name: "NewComment",
  properties: {
    page_id: page._id,
    page_name: page.blocks[0].html.toString(),
    comment_text: commentText,
    comment_id: savedComment._id,
  },
  followers: page.followers,
});

FAQs

Package last updated on 06 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts