Reference documentation of the API is available at http://conwetlab.github.io/ngsijs/stable/NGSI.html.
Just include a
<script> element linking to the
Once added the
<script> element, you will be able to use all the features
provided by the ngsijs library (except receiving notifications):
var connection = "";connectionv2;
This example will display the
id of the first 20 entities. See the
documentation of the
method for more info.
To be able to receive notifications inside a web browser the library requires
the use of a ngsi-proxy server. You
can use your own instance or you the
ngsi-proxy available at
var connection = ""ngsi_proxy_url: "";
$ npm install ngsijs
After installing the ngsijs node module, you will be able to use the API as usual:
var NGSI = ;var connection = "";
Note: Node.js doesn't require the usage of a ngsi-proxy as you can create an HTTP endpoint easily (e.g. using express). Anyway, you can use it if you want, you only have to take into account that is better to directly provide the HTTP endpoint to reduce the overhead.
Take a look to the "3.2.1. Using Orion Context Broker" tutorial available at FIWARE Academy.