Permalink
Browse files

add list distributions example

  • Loading branch information...
1 parent 8830466 commit 6b32dac3fb13ac95220bf0362f992ed72e76da8e @tellnes committed Apr 18, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 examples/list-distributions.js
@@ -0,0 +1,11 @@
+var cloudfront = require('..');
+
+var cf = cloudfront.createClient(process.env.AWS_KEY, process.env.AWS_SECRET);
+
+cf.listDistributions({streaming: true}, function(err, list, info) {
+ if (err) {
+ console.error(err);
+ } else {
+ console.log(list);
+ }
+});

0 comments on commit 6b32dac

Please sign in to comment.