Skip to content
Browse files

update examples to use node callback convention

  • Loading branch information...
1 parent 7d10fb0 commit 3a598fbdbf904e4ffb58eb3787293c840d83a55e @mirkokiefer mirkokiefer committed Mar 18, 2012
Showing with 7 additions and 7 deletions.
  1. +1 −1 examples/ec2.js
  2. +1 −1 examples/elb.js
  3. +1 −1 examples/prod-adv.js
  4. +4 −4 examples/ses.js
View
2 examples/ec2.js
@@ -2,6 +2,6 @@ var aws = require("aws-lib");
ec2 = aws.createEC2Client(yourAccessKeyId, yourSecretAccessKey);
-ec2.call("DescribeInstances", {}, function(result) {
+ec2.call("DescribeInstances", {}, function(err, result) {
console.log(JSON.stringify(result));
})
View
2 examples/elb.js
@@ -2,6 +2,6 @@ var aws = require("aws-lib");
elb = aws.createELBClient(yourAccessKeyId, yourSecretAccessKey);
-elb.call("DescribeLoadBalancers", {}, function(result) {
+elb.call("DescribeLoadBalancers", {}, function(err, result) {
console.log(JSON.stringify(result, null, 2));
})
View
2 examples/prod-adv.js
@@ -2,6 +2,6 @@ var aws = require("../lib/aws");
prodAdv = aws.createProdAdvClient(yourAccessKeyId, yourSecretAccessKey, yourAssociateTag);
-prodAdv.call("ItemSearch", {SearchIndex: "Books", Keywords: "Javascript"}, function(result) {
+prodAdv.call("ItemSearch", {SearchIndex: "Books", Keywords: "Javascript"}, function(err, result) {
console.log(JSON.stringify(result));
})
View
8 examples/ses.js
@@ -2,15 +2,15 @@ var aws = require("../lib/aws");
ses = aws.createSESClient(yourAccessKeyId, yourSecretAccessKey);
-ses.call("GetSendQuota", {}, function(result) {
+ses.call("GetSendQuota", {}, function(err, result) {
console.log(JSON.stringify(result));
});
-ses.call("GetSendStatistics", {}, function(result) {
+ses.call("GetSendStatistics", {}, function(err, result) {
console.log(JSON.stringify(result));
});
-ses.call("ListVerifiedEmailAddresses", {}, function(result) {
+ses.call("ListVerifiedEmailAddresses", {}, function(err, result) {
console.log(JSON.stringify(result));
});
@@ -26,6 +26,6 @@ var send_args = {
'Message.Subject.Data': 'Test subject',
'Source': sender_address
};
-ses.call('SendEmail', send_args, function(result) {
+ses.call('SendEmail', send_args, function(err, result) {
console.log(result);
});

0 comments on commit 3a598fb

Please sign in to comment.
Something went wrong with that request. Please try again.