summaryrefslogtreecommitdiff
path: root/nodejs-zt1-client/test-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'nodejs-zt1-client/test-controller.js')
-rw-r--r--nodejs-zt1-client/test-controller.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/nodejs-zt1-client/test-controller.js b/nodejs-zt1-client/test-controller.js
new file mode 100644
index 00000000..e7c4846f
--- /dev/null
+++ b/nodejs-zt1-client/test-controller.js
@@ -0,0 +1,14 @@
+var ZT1Client = require('./index.js').ZT1Client;
+
+var zt1c = new ZT1Client('http://127.0.0.1:9993/','5d6181b71fae2684f9cc64ed');
+
+zt1c.status(function(err,status) {
+ if (err)
+ console.log(err);
+ console.log(status);
+ zt1c.networks(function(err,networks) {
+ if (err)
+ console.log(err);
+ console.log(networks);
+ });
+});