Commits

Chun-Ping Chang committed eedf095

rename python binding page

Comments (0)

Files changed (3)

docs/lib/js/publish_pos.html

-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-  <head>
-    <title>Publish Pos - REST API - Documentation - GaiaSup</title>
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="keywords" content="GaiaSup,LBS,Geo,Spatial,Location Base Service,Spatial Publish Subscribe,SPS,ImonCloud" />
-    <meta name="description" content="Spatial PubSub Service for your Geo / Spatial / Location Base Service in the cloud by Imonology">
-    <meta name="author" content="Imonology LLC">
-    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-
-    <!-- styles -->
-    <link href="../../assets/css/bs_united.css" rel="stylesheet">
-    <style type="text/css">
-      body {
-        padding-top: 60px;
-        padding-bottom: 40px;
-      }
-    </style>
-    <link href="../../assets/css/bootstrap-responsive.css" rel="stylesheet">
-    <link href="../../assets/css/prettify.css" rel="stylesheet">
-
-    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
-    <!--[if lt IE 9]>
-      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
-    <![endif]-->
-
-    <!-- fav and touch icons -->
-    <!--<link rel="shortcut icon" href="./assets/ico/favicon.ico">-->
-    <!--<link rel="apple-touch-icon-precomposed" sizes="144x144" href="./assets/ico/apple-touch-icon-144-precomposed.png">-->
-    <!--<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./assets/ico/apple-touch-icon-114-precomposed.png">-->
-    <!--<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./assets/ico/apple-touch-icon-72-precomposed.png">-->
-    <!--<link rel="apple-touch-icon-precomposed" href="./assets/ico/apple-touch-icon-57-precomposed.png">-->
-  </head>
-
-  <body onload="prettyPrint()">
-
-    <div class="navbar navbar-fixed-top">
-      <div class="navbar-inner">
-        <div class="container">
-          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-          </a>
-          <a class="brand" href="/">GaiaSup</a>
-          <div class="nav-collapse">
-            <ul class="nav">
-              <li><a href="/">Home</a></li>
-              <li><a href="/pricing">Pricing</a></li>
-              <li><a href="/manage">Manage</a></li>
-              <li class="active"><a href="/doc/api">Documentation</a></li>
-              <li><a data-toggle="modal" href="#contact">Contact us</a></li>
-              <!--<li><a href="/contact">Contact us</a></li>-->
-            </ul>
-
-            <!-- The drop down menu -->
-            <ul class="nav pull-right">
-              <li><a href="/login">Log In / Sign Up</a></li>
-              <!--<li class="divider-vertical"></li>-->
-              <!--<li class="drop down">-->
-              <!--<a class="dropdown-toggle" href="#" data-toggle="dropdown">Log In <strong class="caret"></strong></a>-->
-              <!--<div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;">-->
-                <!--<form id="frmLogin">-->
-                  <!--<input id="txtUserID" style="margin-bottom: 15px;" type="text" name="txtUserID" size="30" />-->
-                  <!--<input id="txtUserPW" style="margin-bottom: 15px;" type="password" name="txtUserPW" size="30" />-->
-
-                  <!--<input class="btn btn-primary" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="button" id="btnLogin" name="btnLogin" value="Log In" />-->
-                <!--</form>-->
-              <!--</div>-->
-              <!--</li>-->
-            </ul>
-          </div>
-          <!--/.nav-collapse -->
-        </div>
-      </div>
-    </div>
-
-    <div class="container">
-      <ul class="breadcrumb">
-        <li><a href="/doc/api">Documentation</a> <span class="divider">→</span></li>
-        <li><a href="/doc/api">REST API</a> <span class="divider">→</span></li>
-        <li><a href="/doc/api#pos">Position</a> <span class="divider">→</span></li>
-        <li class="active">Publish Pos</li>
-      </ul>
-      <div class="hero-unit">
-        <h2>Publish Pos</h2>
-        <em>Publish self position for other Nodes to see.</em>
-        <div>
-          <br/>
-          <strong>Resource URL: </strong>
-          <pre><strong>http://api.gaiasup.com/publish/pos/</strong><em>:x/:y/:z</em></pre>
-          <br/>
-        </div>
-        <table class="table">
-          <thead>
-            <tr>
-              <th class="span3">Parameters</th>
-              <th>Description</th>
-            </tr>
-          </thead>
-          <tbody>
-            <tr>
-              <td>
-                <div>:x</div>
-              </td>
-              <td>
-                <div>
-                  Current position. The value of x / longitude.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>11</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:y</div>
-              </td>
-              <td>
-                <div>
-                  Current position. The value of y / latitude.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>22</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:z</div>
-              </td>
-              <td>
-                <div>
-                  Current position. The value of z / altitude / hieght.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>33</span>
-                </div>
-              </td>
-            </tr>
-          </tbody>
-        </table>
-        <table class="table">
-          <thead>
-            <tr>
-              <th class="span3">Optional Parameters</th>
-              <th>Description</th>
-            </tr>
-          </thead>
-          <tbody>
-            <tr>
-              <td>
-                <div>x1</div>
-              </td>
-              <td>
-                <div>
-                  The 'From' position's x value.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>12</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>y1</div>
-              </td>
-              <td>
-                <div>
-                  The 'From' position's y value.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>34</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>z1</div>
-              </td>
-              <td>
-                <div>
-                  The 'From' position's z value.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>56</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>x2</div>
-              </td>
-              <td>
-                <div>
-                  The 'To' position's x value.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>65</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>y2</div>
-              </td>
-              <td>
-                <div>
-                  The 'To' position's y value.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>43</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>z2</div>
-              </td>
-              <td>
-                <div>
-                  The 'To' position's z value.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>21</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>speed</div>
-              </td>
-              <td>
-                <div>
-                  Current speed.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>333</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>orient</div>
-              </td>
-              <td>
-                <div>
-                  The orientation of the current Node.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>444</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>elevation</div>
-              </td>
-              <td>
-                <div>
-                  The elevation of the current Node.
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>555</span>
-                </div>
-              </td>
-            </tr>
-          </tbody>
-        </table>
-
-        <div>
-          <br/>
-          <strong>Example Request -- </strong>
-          <span class="label label-info">POST</span>
-          <br/> <br/>
-          <pre><strong>http://api.gaiasup.com/publish/pos/</strong><em>11/22/33</em></pre>
-          <br/>
-          <strong>POST Format</strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums language-js">
-{
-  "orien": [orient, elevation],
-  "move":
-  [
-    [x1, y1, z1, x2, y2, z2], speed
-  ]
-}
-          </pre>
-          <br/>
-        </div>
-        <div>
-          <strong>POST Data</strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums language-js">
-{
-  "orien": ["78", "87"],
-  "move":
-  [
-    ["55","55","55","123","34","56"], "77"
-  ]
-}
-          </pre>
-          <br/>
-        </div>
-        <strong>Return Result</strong>
-        <br/> <br/>
-        <pre class="prettyprint linenums language-js">
-["OK", []]
-        </pre>
-      </div>
-
-
-    <hr>
-
-    <footer>
-    <center>
-      <p>&copy; 2012, <a href="http://imonology.com/" target="_blank">Imonology, LLC</a>. All rights reserved.</p>
-    </center>
-    </footer>
-
-    </div>
-    <!-- /container -->
-
-    <!-- Modals -->
-    <div class="modal hide fade" id="contact">
-      <div class="modal-header">
-        <a class="close" data-dismiss="modal">×</a>
-        <h3>Contact us</h3>
-      </div>
-      <div class="modal-body">
-        <p>You can send feedback or report bug to <a href="mailto:contact@GaiaSup.com">contact@GaiaSup.com</a></p>
-      </div>
-      <div class="modal-footer">
-        <a data-dismiss="modal" href="#" class="btn btn-primary" id="ContactUsClose">Close</a>
-      </div>
-    </div>
-
-    <!-- Le javascript
-    ================================================== -->
-    <!-- Placed at the end of the document so the pages load faster -->
-    <script src="../../assets/js/jquery.js"></script>
-    <script src="../../assets/js/bootstrap-transition.js"></script>
-    <script src="../../assets/js/bootstrap-alert.js"></script>
-    <script src="../../assets/js/bootstrap-modal.js"></script>
-    <script src="../../assets/js/bootstrap-dropdown.js"></script>
-    <script src="../../assets/js/bootstrap-scrollspy.js"></script>
-    <script src="../../assets/js/bootstrap-tab.js"></script>
-    <script src="../../assets/js/bootstrap-tooltip.js"></script>
-    <script src="../../assets/js/bootstrap-popover.js"></script>
-    <script src="../../assets/js/bootstrap-button.js"></script>
-    <script src="../../assets/js/bootstrap-collapse.js"></script>
-    <script src="../../assets/js/bootstrap-carousel.js"></script>
-    <script src="../../assets/js/bootstrap-typeahead.js"></script>
-
-    <script src="../../assets/js/prettify.js"></script>
-
-    <script type="text/javascript" charset="utf-8">
-      $(document).ready( function () {
-      $('.accordion-body').collapse('hide');
-      });
-    </script>
-
-  </body>
-</html>
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+  <head>
+    <title>Python - Library - Documentation - GaiaSup</title>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="keywords" content="GaiaSup,LBS,Geo,Spatial,Location Base Service,Spatial Publish Subscribe,SPS,ImonCloud" />
+    <meta name="description" content="Spatial PubSub Service for your Geo / Spatial / Location Base Service in the cloud by Imonology">
+    <meta name="author" content="Imonology LLC">
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+
+    <!-- styles -->
+    <link href="/assets/css/bs_united.css" rel="stylesheet">
+    <style type="text/css">
+      body {
+        padding-top: 60px;
+        padding-bottom: 40px;
+      }
+    </style>
+    <link href="/assets/css/bootstrap-responsive.css" rel="stylesheet">
+    <link href="/assets/css/prettify.css" rel="stylesheet">
+
+    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
+    <!--[if lt IE 9]>
+      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+    <![endif]-->
+
+    <!-- fav and touch icons -->
+    <!--<link rel="shortcut icon" href="./assets/ico/favicon.ico">-->
+    <!--<link rel="apple-touch-icon-precomposed" sizes="144x144" href="./assets/ico/apple-touch-icon-144-precomposed.png">-->
+    <!--<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./assets/ico/apple-touch-icon-114-precomposed.png">-->
+    <!--<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./assets/ico/apple-touch-icon-72-precomposed.png">-->
+    <!--<link rel="apple-touch-icon-precomposed" href="./assets/ico/apple-touch-icon-57-precomposed.png">-->
+  </head>
+
+  <body onload="prettyPrint()">
+
+    <div class="navbar navbar-fixed-top">
+      <div class="navbar-inner">
+        <div class="container">
+          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+          </a>
+          <a class="brand" href="/">GaiaSup</a>
+          <div class="nav-collapse">
+            <ul class="nav">
+              <li><a href="/">Home</a></li>
+              <li><a href="/pricing">Pricing</a></li>
+              <li><a href="/manage">Manage</a></li>
+              <li class="active"><a href="/doc/api">Documentation</a></li>
+              <li><a data-toggle="modal" href="#contact">Contact us</a></li>
+              <!--<li><a href="/contact">Contact us</a></li>-->
+            </ul>
+
+            <!-- The drop down menu -->
+            <ul class="nav pull-right">
+              <li><a href="/login">Log In / Sign Up</a></li>
+              <!--<li class="divider-vertical"></li>-->
+              <!--<li class="drop down">-->
+              <!--<a class="dropdown-toggle" href="#" data-toggle="dropdown">Log In <strong class="caret"></strong></a>-->
+              <!--<div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;">-->
+                <!--<form id="frmLogin">-->
+                  <!--<input id="txtUserID" style="margin-bottom: 15px;" type="text" name="txtUserID" size="30" />-->
+                  <!--<input id="txtUserPW" style="margin-bottom: 15px;" type="password" name="txtUserPW" size="30" />-->
+
+                  <!--<input class="btn btn-primary" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="button" id="btnLogin" name="btnLogin" value="Log In" />-->
+                <!--</form>-->
+              <!--</div>-->
+              <!--</li>-->
+            </ul>
+          </div>
+          <!--/.nav-collapse -->
+        </div>
+      </div>
+    </div>
+
+    <div class="container">
+      <ul class="breadcrumb">
+        <li><a href="/doc/api">Documentation</a> <span class="divider">→</span></li>
+        <li><a href="/doc/api#lib">Libraries</a> <span class="divider">→</span></li>
+        <li class="active">Python</li>
+      </ul>
+
+      <div class="hero-unit">
+        <h2>join()</h2>
+        <em>Check node and layer, register them if result is valid</em>
+        <div>
+          <br/>
+          <strong>Example: </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.join(:API_KEY, :LAYER, :IDENT) </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:API_KEY</div>
+              </td>
+              <td>
+                <div>
+                  Unique API key for the application using GaiaSup
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:LAYER</div>
+              </td>
+              <td>
+                <div>
+                  Layer name for this Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>GaiaSup</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:IDENT</div>
+              </td>
+              <td>
+                <div>
+                  Unique identification for the Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>BlueT</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+      <div class="hero-unit">
+        <h2>publishPos()</h2>
+        <em>Publish self position for other Nodes to see.</em>
+        <div>
+          <br/>
+          <strong>Example: </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.publishPos(:POS_X, :POS_Y, :POS_Z) </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:POS_X</div>
+              </td>
+              <td>
+                <div>
+                  x value of the Position
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>11</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:POS_Y</div>
+              </td>
+              <td>
+                <div>
+                  y value of the Position
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>22</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:POS_Z</div>
+              </td>
+              <td>
+                <div>
+                  z value of the Position
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>33</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+      <div class="hero-unit">
+        <h2>querySquare()</h2>
+        <em>Obtain the positions of other Nodes within a square area.</em>
+        <div>
+          <br/>
+          <strong>Example: </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+retQS = gs.querySquare(:MIN_RANGE_X, :MIN_RANGE_Y, :MIN_RANGE_Z, :MAX_RANGE_X, :MAX_RANGE_Y, :MAX_RANGE_Z)
+
+for i in range(len(retQS[0])):
+  uni = retQS[0][i]['ident']
+  print '= [' + str(i) + ']: ' + uni.encode('utf-8', 'ignore') </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:MIN_RANGE_X</div>
+              </td>
+              <td>
+                <div>
+                  The minimal value of x of the queried square area
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>100</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:MIN_RANGE_Y</div>
+              </td>
+              <td>
+                <div>
+                  The minimal value of y of the queried square area
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>200</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:MIN_RANGE_Z</div>
+              </td>
+              <td>
+                <div>
+                  The minimal value of z of the queried square area
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>300</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:MAX_RANGE_X</div>
+              </td>
+              <td>
+                <div>
+                  The maximal value of x of the queried square area
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>600</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:MAX_RANGE_Y</div>
+              </td>
+              <td>
+                <div>
+                  The maximal value of y of the queried square area
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>500</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:MAX_RANGE_Z</div>
+              </td>
+              <td>
+                <div>
+                  The maximal value of z of the queried square area
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>400</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+      <div class="hero-unit">
+        <h2>queryNode() - Single/Multiple</h2>
+        <em>Obtain the information of one or a list of Nodes.</em>
+        <div>
+          <br/>
+          <strong>Example (Single node): </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.queryNode('', :API_KEY, :LAYER, :IDENT) </pre>
+          <br/>
+          <strong>Example (Multiple nodes): </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+qStr = '[{"apikey": :API_KEY_1, "layer": :LAYER_1, "ident": :IDENT_1 }, {"apikey": :API_KEY_2, "layer": :LAYER_2, "ident": :IDENT_2 }]'
+
+gs.queryNode(qStr) </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:API_KEY / :API_KEY_<em>n</em></div>
+              </td>
+              <td>
+                <div>
+                  Unique API key of query target for the application using GaiaSup
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:LAYER / :LAYER_<em>n</em></div>
+              </td>
+              <td>
+                <div>
+                  Layer name for target Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>GaiaSup</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:IDENT / :IDENT_<em>n</em></div>
+              </td>
+              <td>
+                <div>
+                  Unique identification for the target Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>BlueT</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+      <div class="hero-unit">
+        <h2>subscribeNode() - Single/Multiple</h2>
+        <em>Obtain the information of one or a list of Nodes.</em>
+        <div>
+          <br/>
+          <strong>Example (Single node): </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.subscribeNode('', :API_KEY, :LAYER, :IDENT) </pre>
+          <br/>
+          <strong>Example (Multiple nodes): </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+qStr = '[{"apikey": :API_KEY_1, "layer": :LAYER_1, "ident": :IDENT_1 }, {"apikey": :API_KEY_2, "layer": :LAYER_2, "ident": :IDENT_2 }]'
+
+gs.subscribeNode(qStr) </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:API_KEY / :API_KEY_<em>n</em></div>
+              </td>
+              <td>
+                <div>
+                  Unique API key of target for the application using GaiaSup
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:LAYER / :LAYER_<em>n</em></div>
+              </td>
+              <td>
+                <div>
+                  Layer name for target Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>GaiaSup</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:IDENT / :IDENT_<em>n</em></div>
+              </td>
+              <td>
+                <div>
+                  Unique identification for the target Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>BlueT</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+      <div class="hero-unit">
+        <h2>getSubscribers() - Self/Other</h2>
+        <em>Get the list of subscribers to the current or another specified Node.</em>
+        <div>
+          <br/>
+          <strong>Example (Self): </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.getSubscribers() </pre>
+          <br/>
+          <strong>Example (Other): </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.getSubscribers(:API_KEY, :LAYER, :IDENT) </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:API_KEY</div>
+              </td>
+              <td>
+                <div>
+                  Unique API key of target for the application using GaiaSup
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:LAYER</div>
+              </td>
+              <td>
+                <div>
+                  Layer name for target Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>GaiaSup</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:IDENT</div>
+              </td>
+              <td>
+                <div>
+                  Unique identification for the target Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>BlueT</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+      <div class="hero-unit">
+        <h2>sendMessage() - Single/Multiple</h2>
+        <em>Send message to a node or some nodes at once.</em>
+        <div>
+          <br/>
+          <strong>Example (Single node): </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+sndMsgSingle = '{"msg": "This is Python binding 測試"}'
+
+gs.sendMessage(sndMsgSingle, :API_KEY, :LAYER, :IDENT) </pre>
+          <br/>
+          <strong>Example (Multiple nodes): </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+sndMsgMulti = '{"msg": "This is Python binding 測試", "to": [{"apikey": :API_KEY_1, "layer": :LAYER_1, "ident": :IDENT_1}, {"apikey": :API_KEY_2, "layer": :LAYER_2, "ident": :IDENT_2}]}'
+
+gs.sendMessage(sndMsgMulti) </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:API_KEY / :API_KEY_<em>n</em></div>
+              </td>
+              <td>
+                <div>
+                  Unique API key of target for the application using GaiaSup
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:LAYER / :LAYER_<em>n</em></div>
+              </td>
+              <td>
+                <div>
+                  Layer name for target Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>GaiaSup</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:IDENT / :IDENT_<em>n</em></div>
+              </td>
+              <td>
+                <div>
+                  Unique identification for the target Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>BlueT</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+      <div class="hero-unit">
+        <h2>receiveMessage()</h2>
+        <em>Receive new messages.</em>
+        <div>
+          <br/>
+          <strong>Example: </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.receiveMessage() </pre>
+          <br/>
+        </div>
+      </div>
+
+      <div class="hero-unit">
+        <h2>queryMessage()</h2>
+        <em>Query from message history.</em>
+        <div>
+          <br/>
+          <strong>Example: </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.queryMessage(:START_TIME, :STOP_TIME) </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:START_TIME</div>
+              </td>
+              <td>
+                <div>
+                  Duration: start time (epoch)
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>1347468776</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:STOP_TIME</div>
+              </td>
+              <td>
+                <div>
+                  Duration: stop time (epoch)
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>1347498729</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+      <div class="hero-unit">
+        <h2>revokeNode()</h2>
+        <em>Revoke a currently existing Node.</em>
+        <div>
+          <br/>
+          <strong>Example: </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.revokeNode() </pre>
+          <br/>
+        </div>
+      </div>
+
+      <div class="hero-unit">
+        <h2>revokeLayer()</h2>
+        <em>Revoke a currently existing Layer.</em>
+        <div>
+          <br/>
+          <strong>Example: </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.revokeLayer(:API_KEY, :LAYER) </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:API_KEY</div>
+              </td>
+              <td>
+                <div>
+                  Unique API key for the application using GaiaSup
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:LAYER</div>
+              </td>
+              <td>
+                <div>
+                  Layer name for revoke
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>GaiaSup</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+      <div class="hero-unit">
+        <h2>registerLayer()</h2>
+        <em>Register a Layer under a given API key.</em>
+        <div>
+          <br/>
+          <strong>Example: </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.registerLayer(:API_KEY, :LAYER) </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:API_KEY</div>
+              </td>
+              <td>
+                <div>
+                  Unique API key for the application using GaiaSup
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:LAYER</div>
+              </td>
+              <td>
+                <div>
+                  Name of Layer to be create
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>GaiaSup</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+      <div class="hero-unit">
+        <h2>registerNode()</h2>
+        <em>Register a Node under a given API key and Layer.</em>
+        <div>
+          <br/>
+          <strong>Example: </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.registerNode(:API_KEY, :LAYER, :IDENT) </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:API_KEY</div>
+              </td>
+              <td>
+                <div>
+                  Unique API key for the application using GaiaSup
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:LAYER</div>
+              </td>
+              <td>
+                <div>
+                  Layer name for this Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>GaiaSup</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:IDENT</div>
+              </td>
+              <td>
+                <div>
+                  Unique identification for the Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>BlueT</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+      <div class="hero-unit">
+        <h2>validNode()</h2>
+        <em>Validate whether a particular Node is registered.</em>
+        <div>
+          <br/>
+          <strong>Example: </strong>
+          <br/> <br/>
+          <pre class="prettyprint linenums lang-py">
+from pyGaia.gaiasup import *
+gs = GaiaSup()
+
+gs.validNode(:API_KEY, :LAYER, :IDENT) </pre>
+          <br/>
+        </div>
+        <table class="table">
+          <thead>
+            <tr>
+              <th class="span3">Parameters</th>
+              <th>Description</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr>
+              <td>
+                <div>:API_KEY</div>
+              </td>
+              <td>
+                <div>
+                  Unique API key for the application using GaiaSup
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:LAYER</div>
+              </td>
+              <td>
+                <div>
+                  Layer name for this Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>GaiaSup</span>
+                </div>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <div>:IDENT</div>
+              </td>
+              <td>
+                <div>
+                  Unique identification for the Node
+                </div>
+                <br/>
+                <div>
+                  <strong>Example Value: </strong>
+                  <span>BlueT</span>
+                </div>
+              </td>
+            </tr>
+          </tbody>
+        </table>
+      </div>
+
+    <hr>
+
+    <footer>
+    <center>
+      <p>&copy; 2012, <a href="http://imonology.com/" target="_blank">Imonology, LLC</a>. All rights reserved.</p>
+    </center>
+    </footer>
+
+    </div>
+    <!-- /container -->
+
+    <!-- Modals -->
+    <div class="modal hide fade" id="contact">
+      <div class="modal-header">
+        <a class="close" data-dismiss="modal">×</a>
+        <h3>Contact us</h3>
+      </div>
+      <div class="modal-body">
+        <p>You can send feedback or report bug to <a href="mailto:contact@GaiaSup.com">contact@GaiaSup.com</a></p>
+      </div>
+      <div class="modal-footer">
+        <a data-dismiss="modal" href="#" class="btn btn-primary" id="ContactUsClose">Close</a>
+      </div>
+    </div>
+
+    <!-- Le javascript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <script src="/assets/js/jquery.js"></script>
+    <script src="/assets/js/bootstrap-transition.js"></script>
+    <script src="/assets/js/bootstrap-alert.js"></script>
+    <script src="/assets/js/bootstrap-modal.js"></script>
+    <script src="/assets/js/bootstrap-dropdown.js"></script>
+    <script src="/assets/js/bootstrap-scrollspy.js"></script>
+    <script src="/assets/js/bootstrap-tab.js"></script>
+    <script src="/assets/js/bootstrap-tooltip.js"></script>
+    <script src="/assets/js/bootstrap-popover.js"></script>
+    <script src="/assets/js/bootstrap-button.js"></script>
+    <script src="/assets/js/bootstrap-collapse.js"></script>
+    <script src="/assets/js/bootstrap-carousel.js"></script>
+    <script src="/assets/js/bootstrap-typeahead.js"></script>
+
+    <script src="/assets/js/prettify.js"></script>
+
+  </body>
+</html>

docs/lib/python.html

-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-  <head>
-    <title>Python - Library - Documentation - GaiaSup</title>
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="keywords" content="GaiaSup,LBS,Geo,Spatial,Location Base Service,Spatial Publish Subscribe,SPS,ImonCloud" />
-    <meta name="description" content="Spatial PubSub Service for your Geo / Spatial / Location Base Service in the cloud by Imonology">
-    <meta name="author" content="Imonology LLC">
-    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-
-    <!-- styles -->
-    <link href="/assets/css/bs_united.css" rel="stylesheet">
-    <style type="text/css">
-      body {
-        padding-top: 60px;
-        padding-bottom: 40px;
-      }
-    </style>
-    <link href="/assets/css/bootstrap-responsive.css" rel="stylesheet">
-    <link href="/assets/css/prettify.css" rel="stylesheet">
-
-    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
-    <!--[if lt IE 9]>
-      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
-    <![endif]-->
-
-    <!-- fav and touch icons -->
-    <!--<link rel="shortcut icon" href="./assets/ico/favicon.ico">-->
-    <!--<link rel="apple-touch-icon-precomposed" sizes="144x144" href="./assets/ico/apple-touch-icon-144-precomposed.png">-->
-    <!--<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./assets/ico/apple-touch-icon-114-precomposed.png">-->
-    <!--<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./assets/ico/apple-touch-icon-72-precomposed.png">-->
-    <!--<link rel="apple-touch-icon-precomposed" href="./assets/ico/apple-touch-icon-57-precomposed.png">-->
-  </head>
-
-  <body onload="prettyPrint()">
-
-    <div class="navbar navbar-fixed-top">
-      <div class="navbar-inner">
-        <div class="container">
-          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-          </a>
-          <a class="brand" href="/">GaiaSup</a>
-          <div class="nav-collapse">
-            <ul class="nav">
-              <li><a href="/">Home</a></li>
-              <li><a href="/pricing">Pricing</a></li>
-              <li><a href="/manage">Manage</a></li>
-              <li class="active"><a href="/doc/api">Documentation</a></li>
-              <li><a data-toggle="modal" href="#contact">Contact us</a></li>
-              <!--<li><a href="/contact">Contact us</a></li>-->
-            </ul>
-
-            <!-- The drop down menu -->
-            <ul class="nav pull-right">
-              <li><a href="/login">Log In / Sign Up</a></li>
-              <!--<li class="divider-vertical"></li>-->
-              <!--<li class="drop down">-->
-              <!--<a class="dropdown-toggle" href="#" data-toggle="dropdown">Log In <strong class="caret"></strong></a>-->
-              <!--<div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;">-->
-                <!--<form id="frmLogin">-->
-                  <!--<input id="txtUserID" style="margin-bottom: 15px;" type="text" name="txtUserID" size="30" />-->
-                  <!--<input id="txtUserPW" style="margin-bottom: 15px;" type="password" name="txtUserPW" size="30" />-->
-
-                  <!--<input class="btn btn-primary" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="button" id="btnLogin" name="btnLogin" value="Log In" />-->
-                <!--</form>-->
-              <!--</div>-->
-              <!--</li>-->
-            </ul>
-          </div>
-          <!--/.nav-collapse -->
-        </div>
-      </div>
-    </div>
-
-    <div class="container">
-      <ul class="breadcrumb">
-        <li><a href="/doc/api">Documentation</a> <span class="divider">→</span></li>
-        <li><a href="/doc/api#lib">Libraries</a> <span class="divider">→</span></li>
-        <li class="active">Python</li>
-      </ul>
-
-      <div class="hero-unit">
-        <h2>join()</h2>
-        <em>Check node and layer, register them if result is valid</em>
-        <div>
-          <br/>
-          <strong>Example: </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-gs.join(:API_KEY, :LAYER, :IDENT) </pre>
-          <br/>
-        </div>
-        <table class="table">
-          <thead>
-            <tr>
-              <th class="span3">Parameters</th>
-              <th>Description</th>
-            </tr>
-          </thead>
-          <tbody>
-            <tr>
-              <td>
-                <div>:API_KEY</div>
-              </td>
-              <td>
-                <div>
-                  Unique API key for the application using GaiaSup
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:LAYER</div>
-              </td>
-              <td>
-                <div>
-                  Layer name for this Node
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>GaiaSup</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:IDENT</div>
-              </td>
-              <td>
-                <div>
-                  Unique identification for the Node
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>BlueT</span>
-                </div>
-              </td>
-            </tr>
-          </tbody>
-        </table>
-      </div>
-
-      <div class="hero-unit">
-        <h2>publishPos()</h2>
-        <em>Publish self position for other Nodes to see.</em>
-        <div>
-          <br/>
-          <strong>Example: </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-gs.publishPos(:POS_X, :POS_Y, :POS_Z) </pre>
-          <br/>
-        </div>
-        <table class="table">
-          <thead>
-            <tr>
-              <th class="span3">Parameters</th>
-              <th>Description</th>
-            </tr>
-          </thead>
-          <tbody>
-            <tr>
-              <td>
-                <div>:POS_X</div>
-              </td>
-              <td>
-                <div>
-                  x value of the Position
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>11</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:POS_Y</div>
-              </td>
-              <td>
-                <div>
-                  y value of the Position
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>22</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:POS_Z</div>
-              </td>
-              <td>
-                <div>
-                  z value of the Position
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>33</span>
-                </div>
-              </td>
-            </tr>
-          </tbody>
-        </table>
-      </div>
-
-      <div class="hero-unit">
-        <h2>querySquare()</h2>
-        <em>Obtain the positions of other Nodes within a square area.</em>
-        <div>
-          <br/>
-          <strong>Example: </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-retQS = gs.querySquare(:MIN_RANGE_X, :MIN_RANGE_Y, :MIN_RANGE_Z, :MAX_RANGE_X, :MAX_RANGE_Y, :MAX_RANGE_Z)
-
-for i in range(len(retQS[0])):
-  uni = retQS[0][i]['ident']
-  print '= [' + str(i) + ']: ' + uni.encode('utf-8', 'ignore') </pre>
-          <br/>
-        </div>
-        <table class="table">
-          <thead>
-            <tr>
-              <th class="span3">Parameters</th>
-              <th>Description</th>
-            </tr>
-          </thead>
-          <tbody>
-            <tr>
-              <td>
-                <div>:MIN_RANGE_X</div>
-              </td>
-              <td>
-                <div>
-                  The minimal value of x of the queried square area
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>100</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:MIN_RANGE_Y</div>
-              </td>
-              <td>
-                <div>
-                  The minimal value of y of the queried square area
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>200</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:MIN_RANGE_Z</div>
-              </td>
-              <td>
-                <div>
-                  The minimal value of z of the queried square area
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>300</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:MAX_RANGE_X</div>
-              </td>
-              <td>
-                <div>
-                  The maximal value of x of the queried square area
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>600</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:MAX_RANGE_Y</div>
-              </td>
-              <td>
-                <div>
-                  The maximal value of y of the queried square area
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>500</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:MAX_RANGE_Z</div>
-              </td>
-              <td>
-                <div>
-                  The maximal value of z of the queried square area
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>400</span>
-                </div>
-              </td>
-            </tr>
-          </tbody>
-        </table>
-      </div>
-
-      <div class="hero-unit">
-        <h2>queryNode() - Single/Multiple</h2>
-        <em>Obtain the information of one or a list of Nodes.</em>
-        <div>
-          <br/>
-          <strong>Example (Single node): </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-gs.queryNode('', :API_KEY, :LAYER, :IDENT) </pre>
-          <br/>
-          <strong>Example (Multiple nodes): </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-qStr = '[{"apikey": :API_KEY_1, "layer": :LAYER_1, "ident": :IDENT_1 }, {"apikey": :API_KEY_2, "layer": :LAYER_2, "ident": :IDENT_2 }]'
-
-gs.queryNode(qStr) </pre>
-          <br/>
-        </div>
-        <table class="table">
-          <thead>
-            <tr>
-              <th class="span3">Parameters</th>
-              <th>Description</th>
-            </tr>
-          </thead>
-          <tbody>
-            <tr>
-              <td>
-                <div>:API_KEY / :API_KEY_<em>n</em></div>
-              </td>
-              <td>
-                <div>
-                  Unique API key of query target for the application using GaiaSup
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:LAYER / :LAYER_<em>n</em></div>
-              </td>
-              <td>
-                <div>
-                  Layer name for target Node
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>GaiaSup</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:IDENT / :IDENT_<em>n</em></div>
-              </td>
-              <td>
-                <div>
-                  Unique identification for the target Node
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>BlueT</span>
-                </div>
-              </td>
-            </tr>
-          </tbody>
-        </table>
-      </div>
-
-      <div class="hero-unit">
-        <h2>subscribeNode() - Single/Multiple</h2>
-        <em>Obtain the information of one or a list of Nodes.</em>
-        <div>
-          <br/>
-          <strong>Example (Single node): </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-gs.subscribeNode('', :API_KEY, :LAYER, :IDENT) </pre>
-          <br/>
-          <strong>Example (Multiple nodes): </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-qStr = '[{"apikey": :API_KEY_1, "layer": :LAYER_1, "ident": :IDENT_1 }, {"apikey": :API_KEY_2, "layer": :LAYER_2, "ident": :IDENT_2 }]'
-
-gs.subscribeNode(qStr) </pre>
-          <br/>
-        </div>
-        <table class="table">
-          <thead>
-            <tr>
-              <th class="span3">Parameters</th>
-              <th>Description</th>
-            </tr>
-          </thead>
-          <tbody>
-            <tr>
-              <td>
-                <div>:API_KEY / :API_KEY_<em>n</em></div>
-              </td>
-              <td>
-                <div>
-                  Unique API key of target for the application using GaiaSup
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:LAYER / :LAYER_<em>n</em></div>
-              </td>
-              <td>
-                <div>
-                  Layer name for target Node
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>GaiaSup</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:IDENT / :IDENT_<em>n</em></div>
-              </td>
-              <td>
-                <div>
-                  Unique identification for the target Node
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>BlueT</span>
-                </div>
-              </td>
-            </tr>
-          </tbody>
-        </table>
-      </div>
-
-      <div class="hero-unit">
-        <h2>getSubscribers() - Self/Other</h2>
-        <em>Get the list of subscribers to the current or another specified Node.</em>
-        <div>
-          <br/>
-          <strong>Example (Self): </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-gs.getSubscribers() </pre>
-          <br/>
-          <strong>Example (Other): </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-gs.getSubscribers(:API_KEY, :LAYER, :IDENT) </pre>
-          <br/>
-        </div>
-        <table class="table">
-          <thead>
-            <tr>
-              <th class="span3">Parameters</th>
-              <th>Description</th>
-            </tr>
-          </thead>
-          <tbody>
-            <tr>
-              <td>
-                <div>:API_KEY</div>
-              </td>
-              <td>
-                <div>
-                  Unique API key of target for the application using GaiaSup
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:LAYER</div>
-              </td>
-              <td>
-                <div>
-                  Layer name for target Node
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>GaiaSup</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:IDENT</div>
-              </td>
-              <td>
-                <div>
-                  Unique identification for the target Node
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>BlueT</span>
-                </div>
-              </td>
-            </tr>
-          </tbody>
-        </table>
-      </div>
-
-      <div class="hero-unit">
-        <h2>sendMessage() - Single/Multiple</h2>
-        <em>Send message to a node or some nodes at once.</em>
-        <div>
-          <br/>
-          <strong>Example (Single node): </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-sndMsgSingle = '{"msg": "This is Python binding 測試"}'
-
-gs.sendMessage(sndMsgSingle, :API_KEY, :LAYER, :IDENT) </pre>
-          <br/>
-          <strong>Example (Multiple nodes): </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-sndMsgMulti = '{"msg": "This is Python binding 測試", "to": [{"apikey": :API_KEY_1, "layer": :LAYER_1, "ident": :IDENT_1}, {"apikey": :API_KEY_2, "layer": :LAYER_2, "ident": :IDENT_2}]}'
-
-gs.sendMessage(sndMsgMulti) </pre>
-          <br/>
-        </div>
-        <table class="table">
-          <thead>
-            <tr>
-              <th class="span3">Parameters</th>
-              <th>Description</th>
-            </tr>
-          </thead>
-          <tbody>
-            <tr>
-              <td>
-                <div>:API_KEY / :API_KEY_<em>n</em></div>
-              </td>
-              <td>
-                <div>
-                  Unique API key of target for the application using GaiaSup
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:LAYER / :LAYER_<em>n</em></div>
-              </td>
-              <td>
-                <div>
-                  Layer name for target Node
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>GaiaSup</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:IDENT / :IDENT_<em>n</em></div>
-              </td>
-              <td>
-                <div>
-                  Unique identification for the target Node
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>BlueT</span>
-                </div>
-              </td>
-            </tr>
-          </tbody>
-        </table>
-      </div>
-
-      <div class="hero-unit">
-        <h2>receiveMessage()</h2>
-        <em>Receive new messages.</em>
-        <div>
-          <br/>
-          <strong>Example: </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-gs.receiveMessage() </pre>
-          <br/>
-        </div>
-      </div>
-
-      <div class="hero-unit">
-        <h2>queryMessage()</h2>
-        <em>Query from message history.</em>
-        <div>
-          <br/>
-          <strong>Example: </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-gs.queryMessage(:START_TIME, :STOP_TIME) </pre>
-          <br/>
-        </div>
-        <table class="table">
-          <thead>
-            <tr>
-              <th class="span3">Parameters</th>
-              <th>Description</th>
-            </tr>
-          </thead>
-          <tbody>
-            <tr>
-              <td>
-                <div>:START_TIME</div>
-              </td>
-              <td>
-                <div>
-                  Duration: start time (epoch)
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>1347468776</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:STOP_TIME</div>
-              </td>
-              <td>
-                <div>
-                  Duration: stop time (epoch)
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>1347498729</span>
-                </div>
-              </td>
-            </tr>
-          </tbody>
-        </table>
-      </div>
-
-      <div class="hero-unit">
-        <h2>revokeNode()</h2>
-        <em>Revoke a currently existing Node.</em>
-        <div>
-          <br/>
-          <strong>Example: </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-gs.revokeNode() </pre>
-          <br/>
-        </div>
-      </div>
-
-      <div class="hero-unit">
-        <h2>revokeLayer()</h2>
-        <em>Revoke a currently existing Layer.</em>
-        <div>
-          <br/>
-          <strong>Example: </strong>
-          <br/> <br/>
-          <pre class="prettyprint linenums lang-py">
-from pyGaia.gaiasup import *
-gs = GaiaSup()
-
-gs.revokeLayer(:API_KEY, :LAYER) </pre>
-          <br/>
-        </div>
-        <table class="table">
-          <thead>
-            <tr>
-              <th class="span3">Parameters</th>
-              <th>Description</th>
-            </tr>
-          </thead>
-          <tbody>
-            <tr>
-              <td>
-                <div>:API_KEY</div>
-              </td>
-              <td>
-                <div>
-                  Unique API key for the application using GaiaSup
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>ff003eee35778519ff3dee61ae91833233d0e887</span>
-                </div>
-              </td>
-            </tr>
-            <tr>
-              <td>
-                <div>:LAYER</div>
-              </td>
-              <td>
-                <div>
-                  Layer name for revoke
-                </div>
-                <br/>
-                <div>
-                  <strong>Example Value: </strong>
-                  <span>GaiaSup</span>