Skip to content

node.js library for communicating with Engagespot REST API. Send multi-channel notifications from your node app.

License

Notifications You must be signed in to change notification settings

Engagespot/engagespot-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

This is the official node.js library for communicating with Engagespot REST API. Send multi-channel notifications from your node app.

Installation

npm install @engagespot/node

Prerequisites

You need Engagespot API KEY and API SECRET from your dashboard to get started. If you don't have one, just get one for free.

Getting Started

import { EngagespotClient } from "@engagespot/node";

const client = EngagespotClient({
    apiKey:'ENGAGESPOT_API_KEY',
    apiSecret:'ENGAGESPOT_API_SECRET'
})


client.send({
    notification:{
        title: "Agent X commented on your support ticket #T-793465",
        message: "Dear Customer, We're working on your ticket.",
        url: "https://support.mydomain.com/tickets/793465",
        icon: "https://cdn.support.mydomain.com/images/agent_x_profile.png"
    },
    recipients:['customer@gmail.com']
});

Refer Engagespot REST API Docs to get the list of all supported parameters.

Advanced Configurations

Methods and supported parameters.

import { EngagespotClient } from "@engagespot/node";

const client = EngagespotClient({
    apiKey:'ENGAGESPOT_API_KEY',
    apiSecret:'ENGAGESPOT_API_SECRET'
})

const params = {
    notification:{
        title: "Agent X commented on your support ticket #T-793465",
        message: "Dear Customer, We're working on your ticket.",
        url: "https://support.mydomain.com/tickets/793465",
        icon: "https://cdn.support.mydomain.com/images/agent_x_profile.png"
    },
    recipients:['customer@gmail.com']
}

client.send(params);

//Creating or Updating a user
client.createOrUpdateUser("identifier",{
    "optional":"profile key value pair",
})

About

node.js library for communicating with Engagespot REST API. Send multi-channel notifications from your node app.

Resources

License

Stars

Watchers

Forks

Packages

No packages published