2.4.801 • Published 3 years ago

api_wiseconn v2.4.801

Weekly downloads
-
License
Unlicense
Repository
-
Last release
3 years ago

api_wiseconn

ApiWiseconn - JavaScript client for api_wiseconn REST API documentation to access to the Wiseconn platform. All rights reserved.In case of bad usage or an anomaly detection, Wiseconn will contact the API Key responsable to normalize the situation. # Timestamps All the timestamp you need to avoid the Z at the end. This is a know issue and we are working on implement the best way to resolve that. All the timestamps are referenced to the Farm Timezome. You can check the Farm Method to get the Farm Timezone # Cross-Origin Resource Sharing This API doesn't support Cross-Origin Resource Sharing (CORS). # What's new - Hydraulics related in each Real Irrigation - Add Pump Ids to all zones no matter if has pump selection or not. - Remove the contract limits. # Authentication This SDK is automatically generated by the Swagger Codegen project:

  • API version: 2.4.8
  • Package version: 2.4.8
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install api_wiseconn --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --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 main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var ApiWiseconn = require('api_wiseconn');
var defaultClient = ApiWiseconn.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix['api_key'] = "Token"

var api = new ApiWiseconn.AlarmsApi()
var id = 56; // {Number} Farm identifier
var initTime = new Date("2013-10-20T19:20:30+01:00"); // {Date} Initial date for querying the data
var endTime = new Date("2013-10-20T19:20:30+01:00"); // {Date} End date for querying the data

api.farmsIdAlarmsTriggeredGet(id, initTime, endTime).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://apiv2.wiseconn.com/

ClassMethodHTTP requestDescription
ApiWiseconn.AlarmsApifarmsIdAlarmsTriggeredGetGET /farms/{id}/alarms/triggeredList Farm Triggered Alarms
ApiWiseconn.AlarmsApizonesIdAlarmsTriggeredGetGET /zones/{id}/alarms/triggeredList Zone Triggered Alarms
ApiWiseconn.AlertsApifarmsIdAlertsTriggeredGetGET /farms/{id}/alerts/triggeredList triggered Farm Alerts
ApiWiseconn.AlertsApizonesIdAlertsTriggeredGetGET /zones/{id}/alerts/triggeredList triggered Zones Alerts
ApiWiseconn.FarmsApifarmsGetGET /farmsList Farms
ApiWiseconn.FarmsApifarmsIdAlarmsTriggeredGetGET /farms/{id}/alarms/triggeredList Farm Triggered Alarms
ApiWiseconn.FarmsApifarmsIdAlertsTriggeredGetGET /farms/{id}/alerts/triggeredList triggered Farm Alerts
ApiWiseconn.FarmsApifarmsIdConnectionsGetGET /farms/{id}/connectionsList Farm Connections
ApiWiseconn.FarmsApifarmsIdGetGET /farms/{id}Get a Farm
ApiWiseconn.FarmsApifarmsIdHydraulicsGetGET /farms/{id}/hydraulicsList Farm Hydraulics
ApiWiseconn.FarmsApifarmsIdIrrigationsDeleteDELETE /farms/{id}/irrigationsDelete group irrigations
ApiWiseconn.FarmsApifarmsIdIrrigationsGetGET /farms/{id}/irrigationsList Farm Scheduled Irrigations
ApiWiseconn.FarmsApifarmsIdMeasuresGetGET /farms/{id}/measuresList Farm's Measures
ApiWiseconn.FarmsApifarmsIdNodesGetGET /farms/{id}/nodesList Farm Nodes
ApiWiseconn.FarmsApifarmsIdPumpSystemsGetGET /farms/{id}/pumpSystemsList Farm Pump Systems
ApiWiseconn.FarmsApifarmsIdPutPUT /farms/{id}Update a Farm
ApiWiseconn.FarmsApifarmsIdRealIrrigationsGetGET /farms/{id}/realIrrigationsList Farm Irrigations
ApiWiseconn.FarmsApifarmsIdWebhookPostPOST /farms/{id}/webhookWebhook test method
ApiWiseconn.FarmsApifarmsIdWebhookPutPUT /farms/{id}/webhookUpdate Webhook URL
ApiWiseconn.FarmsApifarmsIdZonesGetGET /farms/{id}/zonesList Farm Zones
ApiWiseconn.HydraulicsApifarmsIdHydraulicsGetGET /farms/{id}/hydraulicsList Farm Hydraulics
ApiWiseconn.HydraulicsApihydraulicsIdChildrenGetGET /hydraulics/{id}/childrenGet a Hydraulic's Children
ApiWiseconn.HydraulicsApihydraulicsIdGetGET /hydraulics/{id}Get a Hydraulic
ApiWiseconn.HydraulicsApizonesIdHydraulicsGetGET /zones/{id}/hydraulicsGet a Zone's Hydraulics
ApiWiseconn.IrrigationsApifarmsIdIrrigationsDeleteDELETE /farms/{id}/irrigationsDelete group irrigations
ApiWiseconn.IrrigationsApifarmsIdIrrigationsGetGET /farms/{id}/irrigationsList Farm Scheduled Irrigations
ApiWiseconn.IrrigationsApifarmsIdRealIrrigationsGetGET /farms/{id}/realIrrigationsList Farm Irrigations
ApiWiseconn.IrrigationsApiirrigationsIdDeleteDELETE /irrigations/{id}Delete a Scheduled Irrigation
ApiWiseconn.IrrigationsApiirrigationsIdGetGET /irrigations/{id}Get a Scheduled Irrigation
ApiWiseconn.IrrigationsApiirrigationsIdPatchPATCH /irrigations/{id}Irrigation Action
ApiWiseconn.IrrigationsApiirrigationsIdPutPUT /irrigations/{id}Update a Scheduled Irrigation
ApiWiseconn.IrrigationsApiirrigationsIdRealIrrigationsGetGET /irrigations/{id}/realIrrigationsList Real Irrigations
ApiWiseconn.IrrigationsApiirrigationsPostPOST /irrigationsCreate Scheduled Irrigation
ApiWiseconn.IrrigationsApipumpSystemsIdIrrigationsGetGET /pumpSystems/{id}/irrigationsList Pump Systems Scheduled Irrigations
ApiWiseconn.IrrigationsApipumpSystemsIdRealIrrigationsGetGET /pumpSystems/{id}/realIrrigationsList Pump Systems Irrigations
ApiWiseconn.IrrigationsApirealIrrigationsIdGetGET /realIrrigations/{id}Get a Real Irrigation
ApiWiseconn.IrrigationsApizonesIdIrrigationsGetGET /zones/{id}/irrigationsList Zone Scheduled Irrigations
ApiWiseconn.IrrigationsApizonesIdRealIrrigationsGetGET /zones/{id}/realIrrigationsList Zone Irrigations
ApiWiseconn.MeasuresApifarmsIdMeasuresGetGET /farms/{id}/measuresList Farm's Measures
ApiWiseconn.MeasuresApimeasuresIdDataGetGET /measures/{id}/dataList the Measurements Data
ApiWiseconn.MeasuresApimeasuresIdGetGET /measures/{id}Get a Measure
ApiWiseconn.MeasuresApinodesIdMeasuresGetGET /nodes/{id}/measuresList Node's Measures
ApiWiseconn.MeasuresApizonesIdMeasuresGetGET /zones/{id}/measuresList Zone's Measures
ApiWiseconn.NodesApifarmsIdNodesGetGET /farms/{id}/nodesList Farm Nodes
ApiWiseconn.NodesApinodesIdGetGET /nodes/{id}Get a Node
ApiWiseconn.NodesApinodesIdMeasuresGetGET /nodes/{id}/measuresList Node's Measures
ApiWiseconn.PumpSystemsApifarmsIdPumpSystemsGetGET /farms/{id}/pumpSystemsList Farm Pump Systems
ApiWiseconn.PumpSystemsApipumpSystemsIdGetGET /pumpSystems/{id}Get a Pump System
ApiWiseconn.PumpSystemsApipumpSystemsIdIrrigationsGetGET /pumpSystems/{id}/irrigationsList Pump Systems Scheduled Irrigations
ApiWiseconn.PumpSystemsApipumpSystemsIdRealIrrigationsGetGET /pumpSystems/{id}/realIrrigationsList Pump Systems Irrigations
ApiWiseconn.PumpSystemsApipumpSystemsIdTanksGetGET /pumpSystems/{id}/tanksList Pump Systems Fertilizer Tanks
ApiWiseconn.PumpSystemsApipumpSystemsIdZonesGetGET /pumpSystems/{id}/zonesList Pump System Zones
ApiWiseconn.ZonesApifarmsIdZonesGetGET /farms/{id}/zonesList Farm Zones
ApiWiseconn.ZonesApipumpSystemsIdZonesGetGET /pumpSystems/{id}/zonesList Pump System Zones
ApiWiseconn.ZonesApizonesIdAlarmsTriggeredGetGET /zones/{id}/alarms/triggeredList Zone Triggered Alarms
ApiWiseconn.ZonesApizonesIdAlertsTriggeredGetGET /zones/{id}/alerts/triggeredList triggered Zones Alerts
ApiWiseconn.ZonesApizonesIdGetGET /zones/{id}Get a Zone
ApiWiseconn.ZonesApizonesIdHydraulicsGetGET /zones/{id}/hydraulicsGet a Zone's Hydraulics
ApiWiseconn.ZonesApizonesIdIrrigationsGetGET /zones/{id}/irrigationsList Zone Scheduled Irrigations
ApiWiseconn.ZonesApizonesIdMeasuresGetGET /zones/{id}/measuresList Zone's Measures
ApiWiseconn.ZonesApizonesIdPutPUT /zones/{id}Update a Zone
ApiWiseconn.ZonesApizonesIdRealIrrigationsGetGET /zones/{id}/realIrrigationsList Zone Irrigations

Documentation for Models

Documentation for Authorization

apiKey

  • Type: API key
  • API key parameter name: api_key
  • Location: HTTP header
2.4.801

3 years ago

2.4.8

3 years ago