Permalink
Browse files

updated readme on how to specify api key

  • Loading branch information...
1 parent 3b518b3 commit 93c34229e8eedd6f7205bc4b7568ea35906d16de visnu pitiyanuvath committed Jul 12, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -36,13 +36,13 @@ In your `node_modules` directory type
Usage
-----
-Add your PostageApp Project API key to `lib/postageapp.js':
+When you require the library, make sure to specify your API key:
- var apiKey = 'API KEY HERE';
+ var postageapp = require('postageapp')('YOUR API KEY HERE');
-After that, you should be good to go. Load the module in your app and call the `apiCall` function. Here is a sample of how to use it:ter
+After that, you should be good to go. Load the module in your app and call the `apiCall` function. Here is a sample of how to use it:
- var postageapp = require('postageapp');
+ var postageapp = require('postageapp')('YOUR API KEY HERE');
postageapp.apiCall(recipients, content, subject, from, variables);
Recipients can be passed along as a single string or as an array.

0 comments on commit 93c3422

Please sign in to comment.