summaryrefslogtreecommitdiff
path: root/nodejs-zt1-client/test-controller.js
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-05-16 16:32:13 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-05-16 16:32:13 -0700
commitcf51961d523222815cde064d88955aee88352eb5 (patch)
tree5acbd2c1ce94af64ba9c0cff1669a8d200bb11fc /nodejs-zt1-client/test-controller.js
parentc9fd8de007540df6f0d2ae7ad07b1c9daa128b93 (diff)
downloadinfinitytier-cf51961d523222815cde064d88955aee88352eb5.tar.gz
infinitytier-cf51961d523222815cde064d88955aee88352eb5.zip
.
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);
+ });
+});