Skip to content

Commit

Permalink
Merge pull request #12 from julianlam/apiKey-getset
Browse files Browse the repository at this point in the history
Ability to get/set apiKey via exported method call
  • Loading branch information
tadman committed May 1, 2015
2 parents 3631075 + 91e067e commit f405f2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/postageapp.js
Expand Up @@ -7,6 +7,14 @@ module.exports = function(apiKey) {
return {
version: function() { return postageVersion; },

getApiKey: function() {
return apiKey;
},

setApiKey: function(newKey) {
apiKey = newKey;
},

sendMessage: function (options, success, error) {
var recipients = options.recipients;

Expand Down

0 comments on commit f405f2c

Please sign in to comment.