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.

const TxnHog = require('txnhog');
var hog = new TxnHog('your-api-key-here');

var message = {
	messageId: 'this-message-id', // this is the id of the message template you created on txnhog
	name: "Shawn Spencer",
	email: "",
	start: "Tuesday the 5th",
	trainer: "Carlton Lassiter",
let send = await hog.SendMessage(obj);

Last updated