Node JS
For node, we've created a small library to connect your node project to txnhog for sending transactional email and sms messages as easily as possible.
1
const TxnHog = require('txnhog');
2
var hog = new TxnHog('your-api-key-here');
3
​
4
var message = {
5
messageId: 'this-message-id', // this is the id of the message template you created on txnhog
6
name: "Shawn Spencer",
7
8
start: "Tuesday the 5th",
9
trainer: "Carlton Lassiter",
10
};
11
let send = await hog.SendMessage(obj);
Copied!
Last modified 7mo ago
Copy link