1.4.0 • Published 1 year ago

@bcc-code/bcc-notifications-node-sdk v1.4.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

nodejs SDK for the Notifications API, currently only support native push functionality.

Example usage

import { Client, Environment } from "@bcc-code/bcc-notifications-node-sdk";

const clientConfig = {
  environment: Environment.Prod,
  clientId: "...",
  clientSecret: "...",
};

const requestPayload = {
  sender: "...",
  title: "...",
  body: "...",
  personUids: ["..."],
  imageUrl: "...",
  data: {
    actionUrl: "...",
  },
};

const client = new Client(clientConfig);

const response = await client.sendNativePush(requestPayload);

// ...
1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago