Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.
/ node Public archive

A nodejs package for interacting with the notifire api

License

Notifications You must be signed in to change notification settings

novuhq/node

Repository files navigation

Notifire Node SDK

And SDK to interact with the Notifire API

✨ Features

  • 🌈 Trigger new notifications from node
  • 📦 Easy to setup and integrate
  • 🛡 Written in TypeScript with predictable static types.

📦 Install

npm install @notifire/node
yarn add @notifire/node

🔨 Usage

import { Notifire } from '@notifire/node';

const notifire = new Notifire(process.env.NOTIFIRE_API_KEY);

await notifire.trigger('<REPLACE_WITH_EVENT_NAME>', {
  $user_id: "<USER IDENTIFIER>",
  $email: "<USER_EMAIL>",
  customAttribute: "", // use the custom attribute from each event here
  firstName: "" 
});

TypeScript

@notifire/node is written in TypeScript with complete definitions.

🔗 Links

About

A nodejs package for interacting with the notifire api

Resources

License

Stars

Watchers

Forks