diff --git a/index.js b/index.js index fc90e82..72ebf1b 100644 --- a/index.js +++ b/index.js @@ -10,6 +10,7 @@ module.exports = function(url, apiKey) { prty = { subscribe: function(o, cb) { if (this.paramsOk(o, cb)) { + o.api_key = this.apiKey; o.list = o.list_id; delete o.list_id; this.request('subscribe', o, this.getSub(cb)); @@ -17,6 +18,7 @@ prty = { }, unsubscribe: function(o, cb) { if (this.paramsOk(o, cb)) { + o.api_key = this.apiKey; o.list = o.list_id; delete o.list_id; this.request('unsubscribe', o, this.getSub(cb));