1.0.3 • Published 8 years ago

sendy-client v1.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

CT Sendy Client

Sendy mailer api client

Code samples

var sendy_client = require('sendy-client');

let sendy_config = {};

const API_KEY = process.env.API_KEY;

sendy_config.SENDY_URL = process.env.SENDY_URL;
sendy_config.SENDY_AUTH_USER = process.env.SENDY_AUTH_USER;
sendy_config.SENDY_AUTH_PASS = process.env.SENDY_AUTH_PASS;

let sendy = new sendy_client(sendy_config);

var payload = {
  api_key: API_KEY,
  email: 'tamdu@chotot.vn',
  title: 'Hi Sendy-Client',
  html: 'Hi from sendy-client'
}



sendy.sendmail(payload, 1).then( (res) => {
  console.log('res',(res));
}).catch( (err) => {
  console.log('err',err);
})
1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago