--
Mailgun Nodejs library. It wraps the HTTP api library described here.
Based on the NodeJS HTTP API wrapper of gitlab described here
Maintained by Jens Verbeken.
# Install from npm
npm install mailgun
# Connection
mailgun = (require 'mailgun-rest')
auth: ["api","your_key"]
domain = 'your_domain'
data =
"event": "delivered"
# Check your stats
mailgun.stats.retrieveAll domain, data, (err, result) ->
console.log result
// Connection
var mailgun = require('mailgun-rest')({
auth: ["api", "your_key"]
});
var domain = 'your_domain'
var data = {
"event": "delivered"
};
// check your stats
mailgun.stats.retrieve(domain, data, function(err, result) {
console.log(result);
});
Install coffee-script globally: 'npm install -g coffee-script'.
Edit the Coffee-Script files in src
, then build them using cake build
.
Use cake watch
to build files continuously while developing.
MIT