Socket
Socket
Sign inDemoInstall

openrest

Package Overview
Dependencies
Maintainers
8
Versions
824
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openrest

OpenRest Node.js Module (https://www.openrest.com)


Version published
Weekly downloads
86
decreased by-87.46%
Maintainers
8
Weekly downloads
 
Created
Source

OpenRest

OpenRest (founded early 2011) is a cloud-based service that enables restaurant owners to easily create online ordering websites, mobile websites and native mobile apps. As of September 2014, a total of almost a thousand restaurants power their online ordering systems with OpenRest.

OpenRest offers an open API for developers. The OpenRest API is exposed as a standard web service communicating JSON over HTTPS.

This module will allow for Node.JS developers easy integration with the OpenRest API.

Quick Example

var openrest = require("openrest");

openrest.request({
    request:{
	    type:"get_organization",
	    organizationId:"5670039316205915"
    },
    callback:function(e) {
	    if (e.error) {
		    console.error(e.errorMessage);
		    return;
		}

		var organization = e.value;
    }
});

Download

The source is available for download from GitHub. Alternatively, you can install using Node Package Manager (npm): npm install openrest

Usage

Request

openrest.request(params);

Send a request to the server.

Arguments

params - Object with two members:

  • request - The request to send. For a list of possible requests, see here.
  • callback(result) - Callback called when result is received from the server.

Keywords

FAQs

Package last updated on 17 Nov 2019

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