{"_id":"node-mandrill","_rev":"53-1aa0f4e5a0b42658ffac3b06a22b5636","name":"node-mandrill","description":"A node.js wrapper for MailChimp's Mandrill API.","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"node-mandrill","version":"0.1.0","description":"A node.js wrapper for MailChimp's Mandrill API.","author":{"name":"Jim Rubenstein","email":"jrubenstein@gmail.com"},"main":"mandrill.js","repository":{"type":"git","url":"git://github.com/jimrubenstein/node-mandrill.git"},"engines":{"node":">= 0.8.2"},"dependencies":{"request":">= 2.9.100","underscore":">= 1.3.3"},"_npmUser":{"name":"jrub","email":"jrubenstein@gmail.com"},"_id":"node-mandrill@0.1.0","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.8.2","_defaultsLoaded":true,"dist":{"shasum":"ea1c1590a4a719da53f2494ab28438a4ebf5aedd","tarball":"https://registry.npmjs.org/node-mandrill/-/node-mandrill-0.1.0.tgz","integrity":"sha512-yoT34nUTsVmfiHH02X6NEDoaizYuoWheBcN6fNHudPrlfJETk3x6E7kzWw9s89qK/B0L61fukrqg1vYD+zWpkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3yieldi2SStTMMfbL1GzBkp8paMzx0rvg5qkJh+ZItAIgKzRHVAKevsp5G7JgdpeAWc6dfQUYIMDXC7i078YOavU="}]},"maintainers":[{"name":"jrub","email":"jrubenstein@gmail.com"}],"directories":{}},"0.1.1":{"name":"node-mandrill","version":"0.1.1","description":"A node.js wrapper for MailChimp's Mandrill API.","author":{"name":"Jim Rubenstein","email":"jrubenstein@gmail.com","url":"http://twitter.com/jim_rubenstein"},"main":"mandrill.js","repository":{"type":"git","url":"git://github.com/jimrubenstein/node-mandrill.git"},"bugs":{"url":"https://github.com/jimrubenstein/node-mandrill/issues"},"engines":{"node":">= 0.8.2"},"dependencies":{"request":">= 2.9.100","underscore":">= 1.3.3"},"homepage":"http://github.com/jimrubenstein/node-mandrill.git","keywords":["mandrill","node mandrill","mandrill api","email","send email","email api","mailchimp","mailchimp api","email mailchimp"],"_npmUser":{"name":"jrub","email":"jrubenstein@gmail.com"},"_id":"node-mandrill@0.1.1","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.8.2","_defaultsLoaded":true,"dist":{"shasum":"5a2f161c81f38da59b21e8862d1a63c67cd7e233","tarball":"https://registry.npmjs.org/node-mandrill/-/node-mandrill-0.1.1.tgz","integrity":"sha512-ugbPCgQeza385aqsyGNift1twSO0+8fuMDAWunHB8tQOBzvik0yXosnBGyr/M3eeOob3mDPP+/UlYMi27zE9oQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEYJPZktXbXz8vFfiQLUz9pONajQhA5vOIfWaKM+KqbtAiAIjGwu2qig2ZLIoG4bd9E8DxIMvhgFNAPUS8sQoz63JQ=="}]},"maintainers":[{"name":"jrub","email":"jrubenstein@gmail.com"}],"directories":{}},"1.0.0":{"name":"node-mandrill","version":"1.0.0","description":"A node.js wrapper for MailChimp's Mandrill API.","author":{"name":"Jim Rubenstein","email":"jrubenstein@gmail.com","url":"http://twitter.com/jim_rubenstein"},"main":"mandrill.js","repository":{"type":"git","url":"git://github.com/jimrubenstein/node-mandrill.git"},"bugs":{"url":"https://github.com/jimrubenstein/node-mandrill/issues"},"engines":{"node":">= 0.8.2"},"dependencies":{"request":">= 2.9.100","underscore":">= 1.3.3"},"homepage":"http://github.com/jimrubenstein/node-mandrill.git","keywords":["mandrill","node mandrill","mandrill api","email","send email","email api","mailchimp","mailchimp api","email mailchimp"],"_npmUser":{"name":"jrub","email":"jrubenstein@gmail.com"},"_id":"node-mandrill@1.0.0","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.8.2","_defaultsLoaded":true,"dist":{"shasum":"c9f12e5e6e7a715320f1e055a37e636491b6a04f","tarball":"https://registry.npmjs.org/node-mandrill/-/node-mandrill-1.0.0.tgz","integrity":"sha512-jNYAfTggR0VMNcW7EWINZag/hCEfybyMB3mfmlb3XG0zix+u9OMRRPK0Fo5Mbz0uUE7WgJjCzmeRAEZYuKSw6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICW1B/qx+16iOAw2CD00SbU1bXXE5pu9ygCZqcxQ2L+9AiBr50mL48qvTx7niEY9Pmf+tSE3a6CajsB3Wd9xq9PEQA=="}]},"maintainers":[{"name":"jrub","email":"jrubenstein@gmail.com"}],"directories":{}},"1.0.1":{"name":"node-mandrill","version":"1.0.1","description":"A node.js wrapper for MailChimp's Mandrill API.","author":{"name":"Jim Rubenstein","email":"jrubenstein@gmail.com","url":"http://twitter.com/jim_rubenstein"},"main":"mandrill.js","repository":{"type":"git","url":"http://github.com/jimrubenstein/node-mandrill.git"},"bugs":{"url":"https://github.com/jimrubenstein/node-mandrill/issues"},"engines":{"node":">= 0.8.2"},"dependencies":{"request":">= 2.9.100","underscore":">= 1.3.3"},"homepage":"http://github.com/jimrubenstein/node-mandrill.git","keywords":["mandrill","node mandrill","mandrill api","email","send email","email api","mailchimp","mailchimp api","email mailchimp"],"readme":"# node-mandrill\n\nnode-mandrill is a node.js module designed to allow you to access MailChimp's\nMandrill API with minimal overhead.\n\nI designed node-mandrill so the only documentation you need, in addition to the\nMandrill API specification, is how to install node, how to install the module,\nand how to make a call.\n\n## Installation\n\nUsing [npm](http://npmjs.org):\n\n    npm install node-mandrill\n\nIf you don't have or don't want to use npm:\n\n    cd ~/.node_modules\n    git clone git://github.com/jimrubenstein/node-mandrill.git \n\n## Usage\n\nUsage is super simple.  To require the mandrill library and initialize it with\nyour account API key:\n\n    var mandrill = require('node-mandrill')('<Your Api Key Here>');\n\nTo make a call to the API, call the `mandrill` function.  For example:\n\n    //send an e-mail to jim rubenstein\n    mandrill('/messages/send', {\n        message: {\n            to: [{email: 'git@jimsc.com', name: 'Jim Rubenstein'}],\n            from_email: 'you@domain.com',\n            subject: \"Hey, what's up?\",\n            text: \"Hello, I sent this message using mandrill.\"\n        }\n    }, function(error, response)\n    {\n        //uh oh, there was an error\n        if (error) console.log( JSON.stringify(error) );\n\n        //everything's good, lets see what mandrill said\n        else console.log(response);\n    });\n\n> ### Arguments\n> **mandrill(*string: api-endpoint*, *object: options*, *[function: callback]*)**\n>\n> **mandrill(*string: api-endpiont*, *function: callback]*)**\n>\n> **Api Endpoint**: The REST url for the API you want to access.  By default,\n> all requests are made requesting JSON as the response format.  If you'd like\n> to utilize a different format, you cann append `.yaml`, `.php`, or `.xml` to\n> the endpoint uri.  Node-mandrill will parse json responses and pass them to\n> the callback, but the other formats will be passed back as a string.\n>\n> **Options**: A javascript object defining the options as needed for the\n> requested API endpoint.  *note*: your API key is not required here, as the\n> module will automatically append it to your request.  However, you can\n> override your configured key by passing a value for a new key, using the\n> `key` index of the options object.\n>\n> **Callback**: A function reference for a function to call upon completion of\n> the request.  It should accept 2 arguments.\n>\n> > **error**: if an error occurred (either with the HTTP request, or within\n> > the Mandrill API) the error will be passed back in this argument.  If there\n> > was no error, the value of error will be null.\n> >\n> > **response**: the response from Mandrill in the requested format.  JSON is\n> > requested by default, and is parsed into a native javascript object upon\n> > completion of the request.  If you choose to use one of the other formats\n> > (xml, yaml, php) the response will be passed back as a string to be used\n> > with your favorite parsers.\n> >\n\n## Requirements\n\n- A [Mandrill](http://mandrill.com/) account w/API key.\n- node.js v0.8.2+ (0.8.2 is the version I used to develop this module.  I'm\n  unsure if it will work with previous ones.  If you run a previous version, and\n  it works, let me know and I'll update this)\n- [request](https://github.com/mikeal/request/) 2.9.100+\n- [underscore](https://github.com/documentcloud/underscore/) 1.3.3+\n\n## Running Tests\n\nTests are written using [Jasmine](https://www.github.com/pivotal/jasmine), using\nthe [jasmine-node](https://github.com/mhevery/jasmine-node) binaries.  You'll\nneed to install jasmine-node to run the tests.\n\nOnce jasmine is installed, you will need to edit the `spec/mandrill.spec.js`\nfile to reflect your Mandrill API key, and an email address to receive your\ntest e-mail on.  These two settings are at the top of the file.  Once they're\nin place, run your tests by doing:\n\n    $ ./test.sh\n\nOn your command line.  If you're running windows, well, sorry. ):\n\n## Question? Problems?\n\nIf you run into problems, have questions, or whatever else you can open an\nissue on this repository, or tweet me\n[@jim_rubenstein](http://twitter.com/jim_rubenstein).  If you'd like to submit\na patch, shoot me a pull request.  I'd like to keep this module simple, so if\nyou want to add all kinds of crazy functionality - you might want to fork.\nWhen in doubt, send a pull request - the worst that can happen is that I won't\nmerge it (:\n\n","readmeFilename":"README.md","_id":"node-mandrill@1.0.1","dist":{"shasum":"86580b7adbc152db3c658a864a7cec90f8d086fd","tarball":"https://registry.npmjs.org/node-mandrill/-/node-mandrill-1.0.1.tgz","integrity":"sha512-6s1NEtohO2ahpHcgA5rJgz0SCbza044XLqfIuiM2XWXBA9mOc3uo8zJrxCQfkJiL0S34BpW/lTKsbfIJaGlm3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGVUtNdHBz9gUXYP7VO2M+B9rvvY0LWQ9yC59ER/kDjkAiEAxT8SQLnp6adXxpW7WUstHB96whfPLTLypezG5i92OXA="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"jrub","email":"jrubenstein@gmail.com"},"maintainers":[{"name":"jrub","email":"jrubenstein@gmail.com"}]}},"readme":"# node-mandrill\n\nnode-mandrill is a node.js module designed to allow you to access MailChimp's\nMandrill API with minimal overhead.\n\nI designed node-mandrill so the only documentation you need, in addition to the\nMandrill API specification, is how to install and install the module, and how\nto make a call.\n\n## Installation\n\nUntil I submit to npm, you'll want to follow these directions:\n\n    cd ~/.node_modules\n    git clone git://github.com/jimrubenstein/node-mandrill.git mandrill\n\n## Usage\n\nUsage is super simple.  To require the mandrill library and initialize it with\nyour account API key:\n\n    var mandrill = require('mandrill')('<Your Api Key Here>');\n\nTo make a call to the API, call the `mandrill` function.  For example:\n\n    //send an e-mail to jim rubenstein\n    mandrill('/messages/send', {\n        message: {\n            to: [{email: 'git@jimsc.com', name: 'Jim Rubenstein'}],\n            from: 'you@domain.com',\n            subject: \"Hey, what's up?\",\n            text: \"Hello, I sent this message using mandrill.\"\n        }\n    }, function(error, response)\n    {\n        //uh oh, there was an error\n        if (error) console.log( JSON.stringify(error) );\n\n        //everything's good, lets see what mandrill said\n        else console.log(response);\n    });\n\n> ### Arguments\n> **mandrill(*string: api-endpoint*, *object: options*, *[function: callback]*)**\n>\n> **mandrill(*string: api-endpiont*, *function: callback]*)**\n>\n> **Api Endpoint**: The REST url for the API you want to access.  By default,\n> all requests are made requesting JSON as the response format.  If you'd like\n> to utilize a different format, you cann append `.yaml`, `.php`, or `.xml` to\n> the endpoint uri.  Node-mandrill will parse json responses and pass them to\n> the callback, but the other formats will be passed back as a string.\n>\n> **Options**: A javascript object defining the options as needed for the\n> requested API endpoint.  *note*: your API key is not required here, as the\n> module will automatically append it to your request.  However, you can\n> override your configured key by passing a value for a new key, using the\n> `key` index of the options object.\n>\n> **Callback**: A function reference for a function to call upon completion of\n> the request.  It should accept 2 arguments.\n>\n> > **error**: if an error occurred (either with the HTTP request, or within\n> > the Mandrill API) the error will be passed back in this argument.  If there\n> > was no error, the value of error will be null.\n> >\n> > **response**: the response from Mandrill in the requested format.  JSON is\n> > requested by default, and is parsed into a native javascript object upon\n> > completion of the request.  If you choose to use one of the other formats\n> > (xml, yaml, php) the response will be passed back as a string to be used\n> > with your favorite parsers.\n> >\n\n## Requirements\n\n- A [Mandrill](http://mandrill.com/) account w/API key.\n- node.js v0.8.2+ (0.8.2 is the version I used to develop this module.  I'm\n  unsure if it will work with previous ones.  If you run a previous version, and\n  it works, let me know and i'll update this)\n- [request](https://github.com/mikeal/request/) 2.9.100+\n- [underscore](https://github.com/documentcloud/underscore/) 1.3.3+\n\n## Question? Problems?\n\nIf you run into problems, have questions, or whatever else you can open an\nissue on this repository, or tweet me\n[@jim_rubenstein](http://twitter.com/jim_rubenstein).  If you'd like to submit\na patch, shoot me a pull request.  I'd like to keep this module simple, so if\nyou want to add all kinds of crazy functionality - you might want to fork.\nWhen in doubt, send a pull request - the worst that can happen is that I won't\nmerge it (:\n\n","maintainers":[{"name":"jrub","email":"jrubenstein@gmail.com"}],"time":{"modified":"2022-06-21T16:41:44.810Z","created":"2012-07-23T13:44:07.166Z","0.1.0":"2012-07-23T13:44:07.592Z","0.1.1":"2012-07-24T15:41:46.203Z","1.0.0":"2012-07-29T01:33:01.531Z","1.0.1":"2012-12-14T02:14:32.263Z"},"author":{"name":"Jim Rubenstein","email":"jrubenstein@gmail.com","url":"http://twitter.com/jim_rubenstein"},"repository":{"type":"git","url":"http://github.com/jimrubenstein/node-mandrill.git"},"users":{"fgribreau":true,"erikpmp":true,"stonecypher":true,"shieldax":true,"rahulroy9202":true,"richfoxton":true,"igorissen":true,"nanchet":true,"dikuw":true}}