Skip to content

jensvrai/mailgun-rest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

NodeJS wrapper of mailgun.com HTTP API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.8%
  • CoffeeScript 28.1%
  • Makefile 1.1%