New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

liverail-api

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liverail-api

A nodejs client library for the Liverail platform's API

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

liverail-api

Purpose

This provides a node client library to use the Liverail API.

Created by Pinion.

Installation

npm install liverail-api

Demo

var liverail = require('liverail-api');

liverail.login('username', 'password', function() {
	liverail.call('/entity/list', function(err, result) {
		if (err) { 
			console.error("Oh no!")
		} else {
			console.log(result.entities)
		}
	});
});
var liverail = require('liverail-api');

liverail.login('username', 'password', function() {
	var params = {
		order_line_id: '123',
		time_end: '2012-02-22 00:00:00'
	}
	liverail.call('/order/line/edit', params, function(err, result) {
		if (err) { 
			console.error("Oh no!")
		}
	});
});

API

liverail.login(username, password, [callback])

login takes 3 arguments; username, password and a callback, to which it will pass an error indicator and the results from Liverail in case you're interested in them.

liverail.call(route, [params], [callback])

call is a generic call function that will call a specified route on the liverail API. The token is added automatically, but you may pass an object with additional parameters to send to the api. You may also pass a callback, which will be called with an error indicator and the results of the API call.

FAQs

Package last updated on 19 Nov 2012

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