postage
PostageApp API Client
node.js module forInstallation:
The recommended way is through npm:
$ npm install postage
Sending a Message
var postage = 'YOUR API KEY'; var options = recipients: 'email@address.com' subject: 'Subject Line' from: 'sender@example.org' content: 'text/html': '<h1>Some awesome content</h1>' 'text/plain': 'Plain text goes here (if any)' ; postage;
alternatively you can use templates (which are setup on postageapp.com)
var options = recipients: 'email@address.com' subject: 'Subject Line' from: 'sender@example.org", templates: 'my_template', variables: { variable1: 'value', variable2: 'value2 };
sending the message to multiple recipients
var options = recipients: 'email@address.com' 'email2@address2.com';
sending the message to multiple recipients with variable data
recipients: "email@example.com": 'variable': 'Value' "email2@example.com": 'variable': 'Value2' ;
Response will look like
Retrieving a Message Recept by UID
var postage = key; postage;
response
Fetching Account Info
var postage = key; postage;
response
Get Method List (List Available API Methods)
var postage = key; postage;
response
Get Project Info
var postage = key; postage;
response
Authors and Contributors
Maintained by unfolio
Edward H. Hotchkiss(@edwardhotchkiss) and Kevin Sakhuja(@kevbook).
MIT License
Copyright © 2012 unfolio
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.