@bcc-code/bcc-notifications-node-sdk
v1.4.0
Published
NodeJS client for bcc-code/bcc-notifications-node-sdk
Downloads
135
Keywords
Readme
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);
// ...