Skip to content

Instantly share code, notes, and snippets.

View xeroxstar's full-sized avatar
🎯
Focusing

vadim korolov xeroxstar

🎯
Focusing
  • Montreal, Quebec Canada
View GitHub Profile
@sendpulse
sendpulse / sample.js
Last active March 18, 2022 20:59
SendPulse REST API Usage Example for Node.js (https://sendpulse.com/api)
// SendPulse's Node.JS Library: https://github.com/sendpulse/sendpulse-rest-api-node.js
var sendpulse = require("./api/sendpulse.js");
sendpulse.init(API_USER_ID,API_SECRET,TOKEN_STORAGE);
var email = {
"html" : "<p>Your email content goes here</p>",
"text" : "Your email text version goes here",
"subject" : "Testing SendPulse API",
"from" : {
"name" : "Your Sender Name",

Node.js project folder-structure

0: Starting from Rails

This is the reference point. All the other options are based off this.

|-- app
|   |-- controllers
|   |   |-- admin