Skip to content

Commit

Permalink
Merge pull request #7 from yochum/master
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
nufyoot committed Aug 15, 2015
2 parents 0f3bf42 + dfdb4c0 commit 2160a8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/interface/client.js
Expand Up @@ -58,7 +58,7 @@ Client.prototype = {
},

getListsForEmail: function (emailAddress, callback) {
this.createsend.get('clients/' + this.clientId + '/listsforemail.json', new { 'email': emailAddress }, null, callback);
this.createsend.get('clients/' + this.clientId + '/listsforemail.json', { 'email': emailAddress }, null, callback);
},

getScheduledCampaigns: function (callback) {
Expand Down Expand Up @@ -99,7 +99,7 @@ Client.prototype = {
},

suppress: function (emailAddress, callback) {
this.createsend.post('clients/' + this.clientId + '/suppress.json', null, new { 'EmailAddress': emailAddress }, callback);
this.createsend.post('clients/' + this.clientId + '/suppress.json', null, { 'EmailAddress': emailAddress }, callback);
},

transferCredits: function (details, callback) {
Expand All @@ -112,6 +112,6 @@ Client.prototype = {
},

unsuppress: function (emailAddress, callback) {
this.createsend.put('clients/' + this.clientId + '/unsuppress.json', new { 'email': emailAddress }, null, callback);
this.createsend.put('clients/' + this.clientId + '/unsuppress.json', { 'email': emailAddress }, null, callback);
}
}
2 changes: 1 addition & 1 deletion lib/interface/clients.js
Expand Up @@ -52,7 +52,7 @@ Clients.prototype = {
new Client(this.createsend, clientId).getPrimaryContact(callback);
},

getListsForEmail: function (clientId, callback) {
getListsForEmail: function (clientId, emailAddress, callback) {
new Client(this.createsend, clientId).getListsForEmail(emailAddress, callback);
},

Expand Down

0 comments on commit 2160a8e

Please sign in to comment.