business-elements

0.1.0 • Public • Published

business-elements-client-js

License Build Status

A JavaScript HTTP Client for the Business Elements API.

Table of Contents


Installation

In nodejs:

$ npm install business-elements --save

Then (ES6):

import BusinessElementsClient from "business-elements";

Or (ES5):

var BusinessElementsClient = require("business-elements").default;

Note that this HTTP client can be transparently used server side or in a regular browser page.

Usage

A client instance is created using the BusinessElementsClient constructor, passing it the remote Business Elements server root URL:

const client = new BusinessElementsClient("https://api.business-elements.com");

Global usage

It is also possible to load the client from a global variable:

var client = new BusinessElementsClient.default("https://api.business-elements.com");

Package Sidebar

Install

npm i business-elements

Weekly Downloads

9

Version

0.1.0

License

Apache-2.0

Unpacked Size

1.87 MB

Total Files

98

Last publish

Collaborators

  • andrekampert
  • denny.leung