Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wialon

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wialon

NodeJS wrapper for Wialon Remote API

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-61.54%
Maintainers
1
Weekly downloads
 
Created
Source

node-wialon

npm version Build Status Coverage Status Dependency Status devDependency Status

A NodeJS wrapper implementation for Wialon Remote API

Installation

$ npm install --save wialon

Usage

Initialising a session:

var wialon = require( 'wialon' );

// using session.start()
var session = wialon().session;
session.start( { username : 'user', password : 'pass' }, function ( err, data ) {
	console.log( data );
} );


// auto-initialise a session by passing in credentials to the factory method
var opts = {
	// login credentials
	credentials : {
		username : 'wialon_test',
		password : 'test'
	}
};

var session = wialon( opts ).session;

Send API requests using session object:

session.request( 'core/search_items', params, function ( err, data ) {
	console.log( data );
} );

// close the session
session.end( function ( err, data ) {
	console.log( data );
} );

Using search helpers:

// grab a new search instance
var search = wialon( opts ).search();

// search for units
search.units( '*', function ( err, data ) {
	console.log( data );
} );

API Documentation

JSDoc generated API documentation can be found at http://nukedzn.github.io/node-wialon/docs/.

Contributing

Contributions are welcome through GitHub pull requests (using fork & pull model).

Keywords

FAQs

Package last updated on 25 Jun 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc