Skip to content

Commit

Permalink
clean up from 1.x merge
Browse files Browse the repository at this point in the history
  • Loading branch information
aydrian committed Aug 18, 2016
1 parent 29a19e6 commit 0564e25
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/resources/transmissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var reqObj = {
}
};

client.transmissions.send(reqObj, function(err, res) {
client.transmissions.send(reqObj, function(err, data) {
if (err) {
console.log('Whoops! Something went wrong');
console.log(err);
Expand Down
4 changes: 2 additions & 2 deletions examples/subaccounts/create_subaccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ var key = 'YOURAPIKEY'
]
};

client.subaccounts.create(options, function(err, res) {
client.subaccounts.create(options, function(err, data) {
if (err) {
console.log(err);
} else {
console.log(res);
console.log(data);
console.log('Congrats you can use our client library!');
}
});
4 changes: 2 additions & 2 deletions examples/subaccounts/get_all_subaccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ var key = 'YOURAPIKEY'
, SparkPost = require('sparkpost')
, client = new SparkPost(key);

client.subaccounts.all(function(err, res) {
client.subaccounts.all(function(err, data) {
if (err) {
console.log(err);
} else {
console.log(res.body);
console.log(data);
console.log('Congrats you can use our client library!');
}
});
4 changes: 2 additions & 2 deletions examples/subaccounts/get_subaccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ var key = 'YOURAPIKEY'
, SparkPost = require('sparkpost')
, client = new SparkPost(key);

client.subaccounts.find(123, function(err, res) {
client.subaccounts.find(123, function(err, data) {
if (err) {
console.log(err);
} else {
console.log(res.body);
console.log(data);
console.log('Congrats you can use our client library!');
}
});
4 changes: 2 additions & 2 deletions examples/subaccounts/update_subaccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ var key = 'YOURAPIKEY'
, status: 'suspended'
};

client.subaccounts.update(options, function(err, res) {
client.subaccounts.update(options, function(err, data) {
if (err) {
console.log(err);
} else {
console.log(res.body);
console.log(data);
console.log('Congrats you can use our client library!');
}
});
2 changes: 1 addition & 1 deletion examples/suppressionList/upsert.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var key = 'YOURAPIKEY'
}
];

client.suppressionList.upsert(recipient, function(err, data) {
client.suppressionList.upsert(recipients, function(err, data) {
if (err) {
console.log(err);
} else {
Expand Down
4 changes: 2 additions & 2 deletions examples/transmissions/send_transmission_with_bcc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ var reqOpts = {
}
};

client.transmissions.send(reqOpts, function(err, res) {
client.transmissions.send(reqOpts, function(err, data) {
if (err) {
console.log(err);
} else {
console.log(res.body);
console.log(data);
console.log("Congrats! You sent an email with bcc using SparkPost!");
}
});
4 changes: 2 additions & 2 deletions examples/transmissions/send_transmission_with_cc.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ var reqOpts = {
}
};

client.transmissions.send(reqOpts, function(err, res) {
client.transmissions.send(reqOpts, function(err, data) {
if (err) {
console.log(err);
} else {
console.log(res.body);
console.log(data);
console.log("Congrats! You sent an email with cc using SparkPost!");
}
});

0 comments on commit 0564e25

Please sign in to comment.