@airyhq/http-client

An http library for the Airy messaging platform compatible with both Browser and Nodejs environments.

Usage no npm install needed!

<script type="module">
  import airyhqHttpClient from 'https://cdn.skypack.dev/@airyhq/http-client';
</script>

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.