# @bloovery/floriclient

> Floricode javascript client

Latest version **0.7.1** (published 2021-03-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bloovery/floriclient
pnpm add @bloovery/floriclient
yarn add @bloovery/floriclient
bun add @bloovery/floriclient
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.1 |
| Published | 2021-03-25 |
| First published | 2021-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 34.7 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bloovery srl |
| Maintainers | dnlnrs |
| Keywords | floricode, api, client, flowertech |

## Links

- npm: https://www.npmjs.com/package/@bloovery/floriclient
- Repository: https://github.com/bloovery/floriclient
- Homepage: https://github.com/bloovery/floriclient#readme
- Issues: https://github.com/bloovery/floriclient/issues
- npm.io page: https://npm.io/package/@bloovery/floriclient

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.20
- [moment](https://npm.io/package/moment.md) ^2.29.1

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.7.1 (latest) — 2021-03-25
- 0.7.0 — 2021-03-25
- 0.6.1 — 2021-03-24
- 0.5.1 — 2021-03-24
- 0.5.0 — 2021-03-24
- 0.4.1 — 2021-03-24

## README

# Floriclient

Floriclient is a JavaScript client for the FloriCode API.

Usage
=====

Install the package using yarn or npm
```bash
yarn add @bloovery/floriclient
```
Instantiate the class with the provided client id (username) and client secret (password).
```javascript
const Floriclient = require('floriclient')
const client = new Floriclient('USERNAME', 'PASSWORD')

// Retrieve a product by ID
const product = await client.getProductById(20453)
// Product {
//   id: 20453,
//   name: "Aglaonema 'Cleopatra'",
//   shortName: 'AGLAO CLEOPATRA',
//   plantRegistratorId: 1,
//   plantTaxonomicNumber: 150125,
//   compositeIndicator: 0,
//   productGroupId: 20606401,
//   entryDate: '2002-09-25',
//   changeDateTitme: '2010-10-26T08:57:00+02:00',
//   expiryDate: null
// }
```

[Changelog](CHANGELOG.md)
=============
### [0.7.1] - 2021-03-25
- Added `top` to limit `getProducts` results
- Exposed `apiClient` to call directly the API's
### [0.7.0] - 2021-03-25
- Added `Name` class
- Added `getProductsTranslated` and `getProductGroupsTranslated` methods
### [0.6.1] - 2021-03-24
- Added `getProducts` method
- Removed some unused properties

---
_Source: https://npm.io/package/@bloovery/floriclient · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
