HawAPI SDK for JavaScript/TypeScript designed to simplify the integration with the API.
Usage
Installation
npm install @hawapi/js-sdk
yarn add @hawapi/js-sdk
1<script src="https://cdn.jsdelivr.net/npm/@hawapi/js-sdk/dist/index.umd.min.js"></script>
Importing and Requesting
1import { createClient } from '@hawapi/js-sdk';2
3const client = createClient();4const result = client5 .getAll('actors')6 .then((data) => data)7 .catch((err) => console.error(err));8
9console.log('HawAPI actors: ', result);