Node.js wrapper for Benchmark Email API
A node.js wrapper for the Benchmark Email API.
benchmarkemail-nodejs exposes the Benchmark Email API (Version 1.0) features of the Benchmark Email API to your node.js application.
Further information on the Benchmark Email API and its features is available at http://www.benchmarkemail.com/API/Doc
Installing using npm (node package manager):
npm install benchmarkemail
Note: npm comes with node now
If you don't have npm installed or don't want to use it:
cd ~/.node_libraries git clone git://github.com/benchmarkemailnode/benchmarkemail-nodejs benchmarkemail
Please note that parts of benchmarkemail-nodejs depend on request and node-querystring. These libraries are needed to be installed for the API to work. If you are using npm all dependencies should be automagically resolved for you.
Information on how to use the Benchmark Email APIs can be found below. Further information on the API methods available can be found at http://www.benchmarkemail.com/API/Doc.
BenchmarkAPI takes one argument which is your API key. You can find your API Key in your Benchmark Email Account.
The callback function for each API method gets two arguments. The first one is an error object which is null when no error occured, the second one an object with all information retrieved as long as no error occured.
var BenchmarkAPI = BenchmarkAPI;var apiKey = 'Your Benchmark API Key';tryvar api = apiKey;catch errorconsole;api;api;