0.1.5 • Published 7 years ago
asuasensordata v0.1.5
asua sensor data api node package
AsuaSensorData - JavaScript client for asua sensor data api. This SDK is automatically generated by the Swagger Codegen project:
- API version: v1
- Package version: 0.1.4 For more information, please visit http://asua.netcad.com/contact
Installation
npm
npm install asuasensordata --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file):
browserify src/index.js --s ASUASENSORDATASDK > ASUASENSORDATASDK.js
Then include bundle.js in the HTML pages.
Getting Started
Please follow the installation instruction and execute the following JS code:
var asuaSensorDataApi = require('asuasensordata');
var apiClient = new asuaSensorDataApi.ApiClient();
apiClient.basePath = basePath;
apiClient.authentications.Authorization.apiKey = "YOUR API KEY";
var observationApi = new asuaSensorDataApi.ObservationApi(apiClient)
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
observationApi.getLastObservationByProcedureAndObservedProperty("SENSOR","PROPERTY",callback);
Documentation for API Endpoints
Doc : http://netigma.netcad.com.tr/SDRest/docs
Documentation for Authorization
Authorization
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header