var DisneyAPI = require("./index");
var api = new DisneyAPI();

api.MagicKingdom.GetWaitTimes(function(err, data) {
    if (err)
    {
        console.log("Error fetching times: " + err);
        return;
    }
    
    console.log(JSON.stringify(data, null, 2));
});

api.GetURL("https://api.wdpro.disney.go.com/global-pool-override-B/facility-service/theme-parks/80007944", function(e, d) {
   console.log(JSON.stringify(d, null, 2));
});

api.GetURL("https://api.wdpro.disney.go.com/global-pool-override-B/facility-service/destinations/80007798", function(e, d) {
   console.log(JSON.stringify(d, null, 2));
});

api.GetPage(80010208, "Attraction", function(error, data) {
    console.log(JSON.stringify(data, null, 2));
});

api.MagicKingdom.GetSchedule(function(err, data) {
    console.log(JSON.stringify(data, null, 2));
});
@@ -1,12 +1,25 @@
+// Setup API%0A
 var DisneyAP
@@ -22,16 +22,21 @@
 eyAPI = 
+new (
 require(
@@ -40,51 +40,136 @@
 re(%22
-./index%22);%0Avar api = new DisneyAPI();%0A%0Aapi.
+wdwjs%22))();%0A%0Avar MagicKingdom = DisneyAPI.MagicKingdom;%0Avar Paris = DisneyAPI.DisneylandParis;%0A%0A// Get Magic Kingdom wait times%0A
 Magi
@@ -228,22 +228,15 @@
 err)
-%0A    %7B%0A       
+ return
  con
@@ -240,19 +240,21 @@
 console.
-log
+error
 (%22Error 
@@ -262,16 +262,35 @@
 etching 
+Magic Kingdom wait 
 times: %22
@@ -302,34 +302,111 @@
 r);%0A
+%0A
     
-    return;%0A    %7D%0A    
+console.log(JSON.stringify(data, null, 2));%0A%7D);%0A%0ADisneylandParis.GetSchedule(function(err, data) %7B
 %0A   
@@ -447,35 +447,41 @@
 null, 2));%0A%7D);%0A%0A
-api
+DisneyAPI
 .GetURL(%22https:/
@@ -630,27 +630,33 @@
 , 2));%0A%7D);%0A%0A
-api
+DisneyAPI
 .GetURL(%22htt
@@ -814,19 +814,25 @@
 );%0A%7D);%0A%0A
-api
+DisneyAPI
 .GetPage
@@ -935,108 +935,4 @@
 %0A%7D);
-%0A%0Aapi.MagicKingdom.GetSchedule(function(err, data) %7B%0A    console.log(JSON.stringify(data, null, 2));%0A%7D);

Tidy up example code