Skip to content

Commit

Permalink
Fix API key for subscribe and unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
ceefour authored Mar 14, 2020
1 parent 2e1014f commit 0a3d5c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ 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));
}
},
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));
Expand Down

0 comments on commit 0a3d5c7

Please sign in to comment.