@airyhq/http-client
v0.47.2
Published
An http library for the Airy messaging platform compatible with both Browser and Nodejs environments.
Downloads
79
Readme
HttpClient Library
The HttpClient Library includes a HTTP client for making requests to Airy's API.
The library exports a HttpClient class with public methods that make requests to Airy's API.
To use the library, you need to instantiate the class with an Airy Core API URL.
Install
npm install --save @airyhq/http-client
or
yarn add @airyhq/http-client
Usage
import {HttpClient} from "@airyhq/http-client";
const client = new HttpClient("http://airy.core");
client.listChannels().then(channels => console.debug("channels", channels));
License
Apache 2.0 © Airy, Inc.