0.3.5 • Published 8 years ago

mailgun-rest v0.3.5

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

mailgun-rest

--

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

# Install from npm
npm install mailgun

Usage

Coffee-Script

# 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

Javascript

// 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);
});

Develop

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.

Contributors

License

MIT

Changelog

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago