Socket
Socket
Sign inDemoInstall

@singletonar/intellidrone-api-client-js

Package Overview
Dependencies
38
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @singletonar/intellidrone-api-client-js

This Intellidrone API client javascript library designed by [Singleton](http://singleton.com.ar). You can find out more about Swagger at [Singleton Web Page](http://singleton.com.ar) or on [Intellidrone Web Page](http://robotagro.com).


Version published
Maintainers
1
Install size
1.79 MB
Created

Readme

Source

@singletonar/intellidrone-api-client-js

JavaScript client for Intellidrone API designed by Singleton. You can find out more about Swagger at Singleton Web Page or on Intellidrone Web Page. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.1

For more information, please visit http://singleton.com.ar/soporte

Installation

For Node.js

npm

If the library was published, then install it via:

npm install @singletonar/intellidrone-api-client-js --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your @singletonar/intellidrone-api-client-js from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('@singletonar/intellidrone-api-client-js') in javascript files from the directory you ran the last command above from.

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, that's to say your javascript file where you actually use this library):

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 intellidrone_api_client_js = require('@singletonar/intellidrone-api-client-js');

var defaultClient = intellidrone_api_client_js.ApiClient.instance;

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

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

var api = new intellidrone_api_client_js.ActividadesApi()

var actividad = new intellidrone_api_client_js.Actividades(); // {Actividades}

api.addActividad(actividad).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 http://web.robotagro.com/api/latest

ClassMethodHTTP requestDescription
intellidrone_api_client_js.ActividadesApiaddActividadPOST /ActividadesAdd one Actividad.
intellidrone_api_client_js.ActividadesApiaddActividadesPOST /Actividades/uploadAdd actividades from a file.
intellidrone_api_client_js.ActividadesApideleteActividadDELETE /Actividades/{id}Delete one Actividad.
intellidrone_api_client_js.ActividadesApieditActividadPUT /ActividadesEdit one Actividad.
intellidrone_api_client_js.ActividadesApigetActividadByIdGET /Actividades/{id}Get one Actividad.
intellidrone_api_client_js.ActividadesApigetActividadesGET /ActividadesGet all Actividades.
intellidrone_api_client_js.LotesApiaddLotePOST /LotesAdd one lote.
intellidrone_api_client_js.LotesApideleteLoteDELETE /Lotes/{id}Delete one lote.
intellidrone_api_client_js.LotesApieditLotePUT /LotesEdit one lote.
intellidrone_api_client_js.LotesApigetLoteByIdGET /Lotes/{id}Get one lote.
intellidrone_api_client_js.LotesApigetLotesGET /LotesGet all lotes.
intellidrone_api_client_js.UsersApiaddUserPOST /UsersAdd one User.
intellidrone_api_client_js.UsersApideleteUsersDELETE /Users/{id}Delete one Users.
intellidrone_api_client_js.UsersApieditUserPUT /UsersEdit one User.
intellidrone_api_client_js.UsersApigetUserByIdGET /Users/{id}Get one User.
intellidrone_api_client_js.UsersApigetUsersGET /UsersGet all Users.
intellidrone_api_client_js.UsersApiloginGET /Users/LoginLogs user into the system
intellidrone_api_client_js.UsersApilogoutGET /Users/LogoutLogs out current logged in user session
intellidrone_api_client_js.VacasApiaddVacaPOST /VacasAdd one vaca.
intellidrone_api_client_js.VacasApideleteVacaDELETE /Vacas/{id}Delete one vaca.
intellidrone_api_client_js.VacasApieditVacaPUT /VacasEdit one vaca.
intellidrone_api_client_js.VacasApigetVacasGET /VacasGet all vacas.
intellidrone_api_client_js.VacasApigetVacasByIdGET /Vacas/{id}Get one vaca.

Documentation for Models

Documentation for Authorization

appToken

  • Type: API key
  • API key parameter name: x_app_id
  • Location: HTTP header

userToken

  • Type: API key
  • API key parameter name: x_user_key
  • Location: HTTP header

FAQs

Last updated on 04 Jan 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc