This is the official node.js library for communicating with Engagespot REST API. Send multi-channel notifications from your node app.
npm install @engagespot/node
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.
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.
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",
})