0.0.1 • Published 8 years ago

sendgrid-scheduler v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

SendGrid Scheduler

REST API for scheduling mails with Sendgrid API using Node.js and Express.js framework with MongoDB.

A Job Scheduler that tasks up emails to be sent in future with a timestamp as input. Also added support for template engine of SendGrid Console.

Running project

You need to have installed Node.js and MongoDB

1) Install dependencies

To install dependencies enter project folder and run following command:

npm install

2) Run server

To run server execute:

node .

EndPoints

HTTP METHODMETHOD
/scheduleGET
/schedule/:scheduleIdGET
/schedule/create/POST

Inputs

NAMEINFOREQUIRED
apiKeySendGrid API KeyYes
toReceiver's emailYes
fromSender's emailYes
subjectEmail SubjectYes
scheduleAtTimestamp when mail should be sent e.g 1411820580000Yes

For Standard Mails

NAMEINFOREQUIRED
textEmail Text/ContentsYes

For Template Mails

NAMEINFOREQUIRED
template_idYour SendGrid Template IdYes
substitution name 1.E.g -name-No
substitution name 1.E.g -address-No
and so onNo

Author

This module was created by Karan K

License

MIT