{"_id":"postageapp","_rev":"32-545efb96ffe3049008da559451180c9e","name":"postageapp","description":"Client library for PostageApp","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.1":{"name":"postageapp","version":"0.0.1","node":">= 0.4.0","homepage":"https://github.com/postageapp/postageapp-nodejs","repository":{"type":"git","url":"git://github.com/postageapp/postageapp-nodejs.git"},"author":{"name":"PostageApp","url":"http://postageapp.com"},"contributors":[{"name":"Jon Lim","email":"jon@postageapp.com","url":"http://postageapp.com"}],"description":"Node.JS package for sending emails through PostageApp","licenses":[{"type":"MIT","url":"https://github.com/postageapp/postageapp-nodejs/blob/master/LICENSE"}],"main":"index","_npmJsonOpts":{"file":"/Users/jonlim/.npm/postageapp/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"postageapp@0.0.1","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"2443589e780b9ead9c5a034a7c9d2df8542523e7","tarball":"https://registry.npmjs.org/postageapp/-/postageapp-0.0.1.tgz","integrity":"sha512-Ye7TvDUCkNThQBKxl1I3eJ2ITvHouO7LwCsbnviySwIE4slmJuGFmuwLFEyjOQSawWuJEO3pEoeJLKxKHNYZxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7twu0RmnCJCBwI6HRQiV7Y8+TlFUVYvNo6oIWutDrQQIhAMTclgmP4OL1PdYd8w6gQ8oQYbsINW3qHLj5ANV/QNJZ"}]},"scripts":{},"directories":{}},"0.0.2":{"name":"postageapp","version":"0.0.2","node":">= 0.4.0","homepage":"https://github.com/postageapp/postageapp-nodejs","repository":{"type":"git","url":"git://github.com/postageapp/postageapp-nodejs.git"},"author":{"name":"PostageApp","url":"http://postageapp.com"},"contributors":[{"name":"Jon Lim","email":"jon@postageapp.com","url":"http://postageapp.com"}],"description":"Node.JS package for sending emails through PostageApp","licenses":[{"type":"MIT","url":"https://github.com/postageapp/postageapp-nodejs/blob/master/LICENSE"}],"main":"index","_npmJsonOpts":{"file":"/Users/jonlim/.npm/postageapp/0.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"postageapp@0.0.2","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"ee0987a1c20f9be69818fcc0ca71ca450976076a","tarball":"https://registry.npmjs.org/postageapp/-/postageapp-0.0.2.tgz","integrity":"sha512-aFkjcd4EICB5/kPJ9St5wd08Y/3uSac7Ktt1Wu713/Mf9QrhzjNxTUFhl5K8qKl7ctI/dZ9fv3vySRPznF9X1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcgFyJ6/RYBVY5du0Lam6u2nwbuTgnksp8vnEIdhVscAIhAPqlOtEKtiu5PZA1qBqWysP+j+dHukkjS0/0wK6A5TXf"}]},"scripts":{},"directories":{}},"0.0.3":{"name":"postageapp","version":"0.0.3","node":">= 0.4.0","homepage":"https://github.com/postageapp/postageapp-nodejs","repository":{"type":"git","url":"git://github.com/postageapp/postageapp-nodejs.git"},"author":{"name":"PostageApp","url":"http://postageapp.com"},"contributors":[{"name":"Jon Lim","email":"jon@postageapp.com","url":"http://postageapp.com"}],"description":"Node.JS package for sending emails through PostageApp","licenses":[{"type":"MIT","url":"https://github.com/postageapp/postageapp-nodejs/blob/master/LICENSE"}],"main":"index","_npmJsonOpts":{"file":"/Users/jonlim/.npm/postageapp/0.0.3/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"postageapp@0.0.3","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"d2f2b2c6ca33aecbf9d3364e4da37c3cced837da","tarball":"https://registry.npmjs.org/postageapp/-/postageapp-0.0.3.tgz","integrity":"sha512-BxQn7G61trlCkw17iPGRxIfVtZDmFkbhtgVNzfTLxbygZYbC0TVcuWCoVgcRGhf/uPS0VpuOOBZtIy6hPfi0WA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIACwKwEH+Hme/rVpwiH3Rwvfxpq2tu7FWm7XFYqGHY0eAiEAzQ/cZ0c7LwGI3gKoS6/RDBwukTdEbjfzZ3Il0Ga0Sxg="}]},"scripts":{},"directories":{}},"0.0.5":{"name":"postageapp","version":"0.0.5","node":">= 0.4.0","homepage":"https://github.com/postageapp/postageapp-nodejs","repository":{"type":"git","url":"git://github.com/postageapp/postageapp-nodejs.git"},"author":{"name":"PostageApp","url":"http://postageapp.com"},"contributors":[{"name":"Jon Lim","email":"jon@postageapp.com","url":"http://postageapp.com"}],"description":"Node.JS package for sending emails through PostageApp","licenses":[{"type":"MIT","url":"https://github.com/postageapp/postageapp-nodejs/blob/master/LICENSE"}],"main":"index","_npmJsonOpts":{"file":"/Users/jonlim/.npm/postageapp/0.0.5/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"postageapp@0.0.5","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.17","_nodeVersion":"v0.5.1","_defaultsLoaded":true,"dist":{"shasum":"03a108251dc6dafd167e280ea0aabd811a83bd58","tarball":"https://registry.npmjs.org/postageapp/-/postageapp-0.0.5.tgz","integrity":"sha512-q4qt5eZpofx+tzclJ8hkNsHRkgzEykdGmfKxkMiivo6X6VxLv7rdLxE3vDU0x1/LZlIyApFwPnXBjhbiivrQlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH0DkBXdhdunRtiCvz0H5zNtvF2P2ktMMeOcB1dQ+AuSAiB9NaUS7KcvwdQ6JxLA+vysN0TiKdNeJVl6H8eLO0UQWQ=="}]},"scripts":{},"maintainers":[{"name":"jonlim","email":"jon@postageapp.com"}],"directories":{}},"0.1.0":{"name":"postageapp","version":"0.1.0","node":">= 0.4.0","homepage":"https://github.com/postageapp/postageapp-nodejs","repository":{"type":"git","url":"git://github.com/postageapp/postageapp-nodejs.git"},"author":{"name":"PostageApp","url":"http://postageapp.com"},"contributors":[{"name":"Jon Lim","email":"jon@postageapp.com","url":"http://postageapp.com"}],"description":"Node.JS package for sending emails through PostageApp","licenses":[{"type":"MIT","url":"https://github.com/postageapp/postageapp-nodejs/blob/master/LICENSE"}],"main":"index","_npmJsonOpts":{"file":"/Users/jonlim/.npm/postageapp/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"postageapp@0.1.0","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.17","_nodeVersion":"v0.5.1","_defaultsLoaded":true,"dist":{"shasum":"fb47e92671f5663eb4e2a4e894b050449549331e","tarball":"https://registry.npmjs.org/postageapp/-/postageapp-0.1.0.tgz","integrity":"sha512-UsgdjAfXP17par1GxalcTz38wA07hPaV1mmOhPvDLZ2QQw5zPetls7eStDPOwqH7ryUtaKMX+07/j32eImk2rQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFFtOS1nujP96c8deMixbprAroQsuzY3GR2fxZf1qsB4AiEAt+2gY58BptQ0IunC277j6y+Jg6dWEGrhAZfsHTJ7oTk="}]},"scripts":{},"maintainers":[{"name":"jonlim","email":"jon@postageapp.com"}]},"1.1.1":{"name":"postageapp","version":"1.1.1","node":">= 0.4.0","homepage":"https://github.com/postageapp/postageapp-nodejs","repository":{"type":"git","url":"https://github.com/postageapp/postageapp-nodejs"},"author":{"name":"PostageApp","url":"http://postageapp.com"},"contributors":[{"name":"Jon Lim","email":"jon@postageapp.com","url":"http://postageapp.com"}],"description":"Node.JS package for sending emails through PostageApp","licenses":[{"type":"MIT","url":"https://github.com/postageapp/postageapp-nodejs/blob/master/LICENSE"}],"main":"index","_id":"postageapp@1.1.1","dist":{"shasum":"a347e28ab3121c85bc341314e748e16b245bef9f","tarball":"https://registry.npmjs.org/postageapp/-/postageapp-1.1.1.tgz","integrity":"sha512-PNBCXbzeQ2iBmMiSyAx4m41h77i7TYAMeVCnKvfA7qJrcv6UIMuljWGdoDJ4JCCodAJwiKp1sjM6w4a6Zp9kIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFdQek3dNlcTZHPAXX9Dns4uq9diES38jljN/tgwu9gEAiEAmtIW/Z3ojY8qCjjzONoahXw8NlVdtpzaOw99cYS7msA="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"jonlim","email":"info@postageapp.com"},"maintainers":[{"name":"jonlim","email":"jon@postageapp.com"}]},"1.1.2":{"name":"postageapp","version":"1.1.2","node":">= 0.4.0","homepage":"https://github.com/postageapp/postageapp-nodejs","repository":{"type":"git","url":"https://github.com/postageapp/postageapp-nodejs"},"author":{"name":"PostageApp","url":"http://postageapp.com"},"contributors":[{"name":"Jon Lim","email":"jon@postageapp.com","url":"http://postageapp.com"}],"description":"Node.JS package for sending emails through PostageApp","licenses":[{"type":"MIT","url":"https://github.com/postageapp/postageapp-nodejs/blob/master/LICENSE"}],"main":"index","_id":"postageapp@1.1.2","dist":{"shasum":"8893aa4a235e866a0dbca4723007f5136a003c4f","tarball":"https://registry.npmjs.org/postageapp/-/postageapp-1.1.2.tgz","integrity":"sha512-TqohrRKV6UR76o23ILPPmGPzb2+9VLWgOS+70vgPsgyYjz8kZbei3yn0IrI1F1ds7kcm2luB/p50wuAzAW9uwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGqUINRrJaFFYOzazFhaMb8PyVMiuWCPRGfu9bAz5TrFAiB8MElSZf3Fd0dsVrVRAKe5VnP0grrRj3/qijPm/o941g=="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"jonlim","email":"info@postageapp.com"},"maintainers":[{"name":"jonlim","email":"jon@postageapp.com"}]},"1.1.3":{"name":"postageapp","version":"1.1.3","node":">= 0.4.0","homepage":"https://github.com/postageapp/postageapp-nodejs","repository":{"type":"git","url":"https://github.com/postageapp/postageapp-nodejs"},"author":{"name":"PostageApp","url":"http://postageapp.com"},"contributors":[{"name":"Jon Lim","email":"jon@postageapp.com","url":"http://postageapp.com"}],"description":"Node.JS package for sending emails through PostageApp","licenses":[{"type":"MIT","url":"https://github.com/postageapp/postageapp-nodejs/blob/master/LICENSE"}],"main":"index","gitHead":"8cc98de3e614aa2c4d32416dac652a11d69e211b","bugs":{"url":"https://github.com/postageapp/postageapp-nodejs/issues"},"_id":"postageapp@1.1.3","scripts":{},"_shasum":"b88040cf877cdb8c1772db0139852cf42e934231","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.2","_npmUser":{"name":"tadman","email":"scott@tadman.ca"},"maintainers":[{"name":"tadman","email":"scott@tadman.ca"}],"dist":{"shasum":"b88040cf877cdb8c1772db0139852cf42e934231","tarball":"https://registry.npmjs.org/postageapp/-/postageapp-1.1.3.tgz"}},"1.1.4":{"name":"postageapp","version":"1.1.4","node":">= 0.4.0","homepage":"https://github.com/postageapp/postageapp-nodejs","repository":{"type":"git","url":"https://github.com/postageapp/postageapp-nodejs"},"author":{"name":"PostageApp","url":"http://postageapp.com"},"contributors":[{"name":"Jon Lim","email":"jon@postageapp.com","url":"http://postageapp.com"}],"description":"Node.JS package for sending emails through PostageApp","licenses":[{"type":"MIT","url":"https://github.com/postageapp/postageapp-nodejs/blob/master/LICENSE"}],"main":"index","gitHead":"7e167efc87c2d2962fa475547e7ac8759de3c906","bugs":{"url":"https://github.com/postageapp/postageapp-nodejs/issues"},"_id":"postageapp@1.1.4","scripts":{},"_shasum":"c7d1057281538d654f501cc1dc1f737e34f00015","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.2","_npmUser":{"name":"tadman","email":"scott@tadman.ca"},"maintainers":[{"name":"tadman","email":"scott@tadman.ca"}],"dist":{"shasum":"c7d1057281538d654f501cc1dc1f737e34f00015","tarball":"https://registry.npmjs.org/postageapp/-/postageapp-1.1.4.tgz","integrity":"sha512-hpKjr79TKW66bigc1uALddGI16dbhdmizJGJNE/ryN8gPzM0K4kWswgHWTtyoIqxcCRwkofiHkuZ+U1l97RRNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgika60QNTtud8L7WgOkbahgM6uUQdQ5sPaETeP+dGBwIhAIRbAY4MH1qoBZkOgvJG7y26p9st1FpIdOL/2ij2wEuV"}]}},"1.1.5":{"name":"postageapp","version":"1.1.5","node":">= 0.6.0","homepage":"https://github.com/postageapp/postageapp-nodejs","repository":{"type":"git","url":"git+https://github.com/postageapp/postageapp-nodejs.git"},"author":{"name":"PostageApp","url":"http://postageapp.com/"},"contributors":[{"name":"Scott Tadman","email":"tadman@postageapp.com","url":"http://postageapp.com/"},{"name":"Jon Lim","email":"jon@postageapp.com"}],"description":"Client library for PostageApp","license":"MIT","main":"index","scripts":{"test":"mocha"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2"},"gitHead":"36c81999367c171de4b2b9a72508676882ac34e2","bugs":{"url":"https://github.com/postageapp/postageapp-nodejs/issues"},"_id":"postageapp@1.1.5","_shasum":"e9cdd7bd5fffd0ee8170f00ffae2ae6c996d82d9","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"tadman","email":"scott@tadman.ca"},"maintainers":[{"name":"tadman","email":"scott@tadman.ca"}],"dist":{"shasum":"e9cdd7bd5fffd0ee8170f00ffae2ae6c996d82d9","tarball":"https://registry.npmjs.org/postageapp/-/postageapp-1.1.5.tgz","integrity":"sha512-VfX0NttwHlbsMhRlKnbBQ0emt1wkR9TDCGKxNLOJzux2S2PLEJLScPKIMpBikPcJupgnnAj1AY5/AzUG2o0jKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVFJDxo0wNa7Z4mZhoTOyk+lYHPlDteVQCUTIyKWqNjwIhAIRuJTRUYaIUW+3eIv7hSichLn+dkWyJONbFHNT1SqiK"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postageapp-1.1.5.tgz_1478538445472_0.8301078549120575"}},"2.0.0":{"name":"postageapp","version":"2.0.0","node":">= 6.0.0","homepage":"https://github.com/postageapp/postageapp-nodejs","repository":{"type":"git","url":"git+https://github.com/postageapp/postageapp-nodejs.git"},"author":{"name":"PostageApp","url":"http://postageapp.com/"},"contributors":[{"name":"Scott Tadman","email":"tadman@postageapp.com","url":"http://postageapp.com/"}],"description":"Client library for PostageApp","license":"MIT","main":"lib/postageapp","scripts":{"test":"mocha"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.1.2"},"dependencies":{"bluebird":"^3.4.6","commander":"^2.9.0","uuid":"^2.0.3"},"gitHead":"b4abf6b755ed6a3a9fb2fdbf4ea0b7616f119d40","bugs":{"url":"https://github.com/postageapp/postageapp-nodejs/issues"},"_id":"postageapp@2.0.0","_shasum":"c5c6b2981260a973971932f84700634af5f78a2f","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"tadman","email":"scott@tadman.ca"},"maintainers":[{"name":"tadman","email":"scott@tadman.ca"}],"dist":{"shasum":"c5c6b2981260a973971932f84700634af5f78a2f","tarball":"https://registry.npmjs.org/postageapp/-/postageapp-2.0.0.tgz","integrity":"sha512-UOE4OYTVansN0Y0T+meycnQikODIYmu4D2G363fRAzatCrjIgZVHQ+ltbIG/+XA531K2jhxPJ4HwDw8cY39IWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEtac2UeSWK73kJxAl314Z24LT9s/IGxh/TBt5YQD00AAiB5F/K/y1lc5gD2PBQUEWC/9uwE8gtc5D21eOB8pzseGw=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postageapp-2.0.0.tgz_1479148138558_0.4875933767762035"}}},"maintainers":[{"name":"tadman","email":"scott@tadman.ca"}],"time":{"modified":"2022-07-13T14:58:13.984Z","created":"2011-07-07T18:58:01.199Z","0.0.1":"2011-07-07T18:58:01.479Z","0.0.2":"2011-07-12T14:51:52.313Z","0.0.3":"2011-07-19T18:39:30.955Z","0.0.5":"2011-08-15T19:15:52.421Z","0.1.0":"2012-04-07T16:20:16.052Z","1.1.1":"2013-02-06T20:40:40.058Z","1.1.2":"2013-02-22T16:40:15.913Z","1.1.3":"2015-05-08T16:57:48.837Z","1.1.4":"2015-05-08T17:00:22.751Z","1.1.5":"2016-11-07T17:07:27.377Z","2.0.0":"2016-11-14T18:29:00.754Z"},"author":{"name":"PostageApp","url":"http://postageapp.com/"},"repository":{"type":"git","url":"git+https://github.com/postageapp/postageapp-nodejs.git"},"homepage":"https://github.com/postageapp/postageapp-nodejs","contributors":[{"name":"Scott Tadman","email":"tadman@postageapp.com","url":"http://postageapp.com/"}],"readme":"# PostageApp for Node.JS\n\nThis is a module for [Node.js](http://nodejs.org/) that allows you to send\nemails with [PostageApp](http://postageapp.com/), a service that makes it easy\nto add personalized, transactional email to your application.\n\n### [API Documentation](http://help.postageapp.com/faqs/api) &bull; [PostageApp FAQs](http://help.postageapp.com/faqs) &bull; [PostageApp Help Portal](http://help.postageapp.com)\n\n## Installation\n\nThere are several ways to install this plugin depending on your requirements.\nThe most common method is via the Node Package Manager, NPM.\n\nThis version of the library **requires Node v6** or more recent. For older\nNode.js installations you can use a version from the 1.1.x branch. The\n1.1.5 release should be current but uses Node.js callback methods instead of\npromises.\n\n### NPM\n\nIn your application's main directory:\n\n    npm install postageapp --save\n\n## Sending a Message\n\nWhen you require the library, make sure to specify your API key:\n\n    var postageapp = require('postageapp')('ACCOUNT_API_KEY');\n\nAfter that, you should be good to go. Load the module in your app and call the\n`sendMessage` function. Here is a sample of how to use it:\n\n    var postageapp = require('postageapp')('ACCOUNT_API_KEY');\n    postageapp.sendMessage(options, function callback() {});\n\nThe `options` parameter on the `sendMessage()` function is a hash that contains\nall of the arguments that you will be using in your API call. Here is an\nexample API call:\n\n    var options = {\n      recipients: \"email@example.com\",\n\n      subject: \"Subject Line\",\n      from: \"sender@example.org\",\n\n      content: {\n        'text/html': '<strong>Sample bold content.</strong>',\n        'text/plain': 'Plain text goes here'\n      }\n    }\n\nYou can use any of the arguments available to\n[send_message.json](http://help.postageapp.com/kb/api/send_message) when\ncreating this hash.\n\nRecipients can be passed along as a single string or as an array:\n\n    // String form: Comma separated list\n    recipients: \"recipient1@example.com, recipient2@example.com\"\n\n    // Array form: Individual addresses as strings\n    recipients: [ \"email1@example.com\", \"email2@example.com\" ]\n\nIf you wish to set Message Variables for each individual recipient, create an\nobject with keys representing each recipient address:\n\n    // Object form: Email address as key, object of key/values as content\n    recipients: {\n      \"email@example.com\": {\n        'variable': 'Value'\n      },\n      \"email2@example.com\": {\n        'variable': 'Another Value'\n      }\n    };\n\nContent will accept an array for HTML and plain text content:\n\n    content: {\n      'text/html': '<strong>Sample bold content.</strong>',\n      'text/plain': 'Plain text goes here'\n    };\n\nSubject and from can be simple strings:\n\n    subject: 'Subject Line',\n    from: 'sender@example.org'\n\nTemplates are called by using the template slug from your PostageApp projects:\n\n    template: 'sample_template'\n\nMessage Variables needs to have an array passed into it with the global\nvariable names and values:\n\n    variables: {\n      'variable': 'Variable value',\n      'variable2': 'Another variable'\n    }\n\n## Success and Error Callbacks\n\nThe `sendMessage()` function takes two callback arguments: success and error:\n\n    var postageapp = require('postageapp')('ACCOUNT_API_KEY');\n\n    postageapp.sendMessage(options).then((response) => {\n      console.log('HTTP Status code: ', response.statusCode);\n      console.log('Message UID', object.response.uid);\n    }).catch((error) => {\n      console.error(error);\n    });\n\n## Getting Account Info\n\nYou can get your PostageApp account info through the Node.js plugin by using the\n`accountInfo()` function, which can be used as such:\n\n    const PostageApp = require('postageapp');\n    var postageapp = new PostageApp('ACCOUNT_API_KEY');\n\n    postageapp.accountInfo();\n\nYou can take a look at the documentation for\n[get_account_info.json](http://help.postageapp.com/kb/api/get_account_info) to\nlearn about the typical response from the API.\n\n## Getting Message Status\n\nYou can the status of an individual message sent through PostageApp using the\nUID that your API call provides. The PostageApp plugin creates a unique\nUID for each message sent through by using `Date.getTime()`. You then use that\nUID in `messageStatus()`.\n\n    const PostageApp = require('postageapp');\n    var postageapp = new PostageApp('ACCOUNT_API_KEY');\n\n    postageapp.messageStatus({ uid: 'PREVIOUS_UID' }).then((status) => {\n      console.log(status);\n    });\n\nYou will receive a JSON string back from the API server that will look like:\n\n    {\"response\":{\"status\":\"ok\",\"uid\":\"PREVIOUS_UID\"},\"data\":{\"message_status\":{\"completed\":1}}}\n\nFor more information about formatting of recipients, templates and variables\nplease see the [PostageApp documentation](http://help.postageapp.com/kb/api/send_message).\n\n## Configuration\n\n### File Format\n\nThe configuration is read in from a JSON file that has this structure:\n\n    {\n      \"host\": \"api.postageapp.com\",\n      \"port\": \"443\",\n      \"secure\": secure,\n      \"apiKey\": \"__PROJECT_API_KEY__\"\n    }\n\nThe only one that's required is the `apiKey` value, the others are optional\nand will default to what's shown here.\n\n### Environment Variables\n\nYou can specify the configuration for your PostageApp account via a series of\nenvironment variables, in a config file, or in a config file path expressed as\nan environment variable:\n\n * `POSTAGEAPP_CONFIG` - Path to a JSON configuration file that will be loaded.\n * `POSTAGEPPP_API_KEY` - Which API key to use by default.\n * `POSTAGEAPP_HOST` - Which host to contact for the API (default `api.postageapp.com`)\n * `POSTAGEAPP_PORT` - Which port to contact for the API (default 443)\n * `POSTAGEAPP_SECURE` - Use HTTPS to connect to the API (default 1)\n\nAny of these settings can be overruled by constructing a `PostageApp`\ninstance with different options. For example, if you're sending calls through\na custom HTTP proxy:\n\n    var postageapp = new PostageApp({\n      host: 'my.proxy',\n      port: 8080,\n      secure: false,\n      apiKey: '__PROJECT_API_KEY'\n    });\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/postageapp/postageapp-nodejs/issues"},"license":"MIT"}