Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add list distributions example

  • Loading branch information...
commit 6b32dac3fb13ac95220bf0362f992ed72e76da8e 1 parent 8830466
Christian Tellnes authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 examples/list-distributions.js
11 examples/list-distributions.js
View
@@ -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);
+ }
+});
Please sign in to comment.
Something went wrong with that request. Please try again.