Giter Site home page Giter Site logo

madmimi-node's Introduction

Madmimi Client

A simple client wrapper to be able to send mails using the mad mimi api Developer api help

Changelog

V0.1.6

  • Bug fixes - add locals/options to jade

V0.1.3

  • Support for Jade (see examples)

V0.1.1

  • Get list of promotions as json
  • Add user to list

V0.1.0

  • Send Email
  • Get status of transaction email

Usage

Using the library is quite straight forward, for a full example see the examples folder.

Installation

npm install madmimi-node

##Creating

var describe('madmimi');
var madmimi = new Madmimi("useremail","api-key");

##Send mail

var email_options = {
  promotion_name:"Test Promotion",
  recipient:"Jimi Hendrix <[email protected]>",
  subject:"Test Promotion",
  from:"[email protected]",
  raw_html:"<html><head><title>Great promotion!</title></head><body>Cool guitar stuff[[tracking_beacon]]</body></html>"
};

madmimi.sendMail(email_options, function (transaction_id) {
  console.log("Email transaction is: " + transaction_id)
});

##Email Status

madmimi.mailStatus("email_id", function (msg) {
  console.log("status: " + msg);
});

Todo

  • Add send to list
  • match ruby gem usage

Contributors

Steve Cheung Copyright

Copyright © 2011 Garren Smith. See LICENSE for details.

madmimi-node's People

Contributors

garrensmith avatar oldcookie avatar

Watchers

Hassansin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.