The client works both in the browser and Node.js.
Install the npm package via npm or yarn.
The library exports an
HttpClient class with public methods that make requests to the Airy Core API.
To get started, instantiate the
HttpClient class with your API host URL:
Each method makes an HTTP request to the Airy Core API and returns a Promise, which resolves with the response data, or rejects with an error.
Some methods require a request payload object passed as an argument: refer to HTTP endpoints' documentation to learn more.