@lableb/api-client
v0.2.8
Published
Lableb cloud API client
Downloads
44
Readme
Lableb Cloud API Javascript Client
JS API Client that wraps Lableb Restful API for faster development experience.
Installation
yarn add @lableb/api-client
# OR
npm install @lableb/api-client
Browsers
<script src="https://unpkg.com/@lableb/api-client/dist/Lableb_API_Client.min.js"></script>
For browser users you need to access Lableb_API_Client
from window.LablebSDK.Lableb_API_Client
.
This library is meant for advanced usage of Lableb's API, if you only want the basic search, autocomplete and recommend operations please use Lableb JS SDK
Overview
For JS based projects, calling Lableb's Restful API might be daunting, knowing which URL map to which operation, or defining types for each request/response using a static typing library like typescript.
This library solve these simple, time consuming problems, it offers you:
- a wrapper around most of Lableb's Restful API
- static type definition for each request and response
Usage
import { LablebAPIClient } from '@lableb/api-client';
let lablebClient = LablebAPIClient();
lablebClient
represents the wrapper around Lableb's API, a sample example of making a login:
// login example
lablebClient.auth.login({ email: '', password: '' });
API
Lableb Client wrap most important of Lableb's API Restful calls
FAQ:
I have an issue, what can I do to solve it?
If you find an issue you can open an issue at the git repository, or contact us at [email protected]