JavaScript

Overview

This library contains all the API calls needed to communicate with the HAT.

  • Authentication

  • Fetch Applications, Data Plugs and Data Debits

  • Read and write data to endpoints

  • File API

Setting Up Environment

Supported Environments

The @dataswift/hat-js library works in all modern browsers. Some older browsers do not support all the features required. If you want to support these browsers you need to load polyfill for Promise.

Installation

Install the @dataswift/hat-js package via npm or pull from our CDN.

NPM installation

npm install @dataswift/hat-js

CDN Link

Usage

Importing

ES6

ES5 Modules

Initialisation

Configuration type:

Example:

Last updated

Was this helpful?