1.0.0-beta.6 • Published 6 years ago

cliniasearch v1.0.0-beta.6

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Features

  • Thin & minimal low-level HTTP client to interact with Clinia's API
  • Works both on the browser and node.js
  • UMD compatible, you can use it with any module loader
  • Contains type definitions: @types/cliniasearch

Getting Started

First, install Clinia JavaScript API Client via the npm package manager:

npm install --save cliniasearch

Let's search using the search method:

const cliniasearch = require('cliniasearch');

const client = cliniasearch('YourApplicationID', 'YourAPIKey');
const index = client.initIndex('your_index_name');

index
  .search('Fo')
  .then(({ hits }) => {
    console.log(hits);
  })
  .catch(err => {
    console.log(err);
  });

For full documentation, visit the online documentation.

📄 License

CLinia JavaScript API Client is an open-sourced software licensed under the MIT license.