# breakout-api-client

> A JS Api client for the breakout-backend

Latest version **0.18.6** (published 2022-04-11) · AGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install breakout-api-client
pnpm add breakout-api-client
yarn add breakout-api-client
bun add breakout-api-client
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.18.6 |
| Published | 2022-04-11 |
| First published | 2017-11-21 |
| Weekly downloads | 0 |
| License | AGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 19.1 KB |
| Known vulnerabilities | 0 (+24 in 2 direct dependencies) |
| Install scripts | no |
| Author | Florian Schmidt |
| Maintainers | florianschmidt1994, mathiasquintero, dominikglandorf, sibbl, breakout-devops |

## Links

- npm: https://www.npmjs.com/package/breakout-api-client
- npm.io page: https://npm.io/package/breakout-api-client

## Dependencies (4)

- [qs](https://npm.io/package/qs.md) ^6.5.1
- [axios](https://npm.io/package/axios.md) ^0.21.1
- [request](https://npm.io/package/request.md) ^2.78.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.5

## Recent versions

- 0.18.6 (latest) — 2022-04-11
- 0.18.4 — 2022-04-11
- 0.18.3 — 2021-04-15
- 0.18.1 — 2019-08-28
- 0.18.0 — 2019-08-26
- 0.17.2 — 2019-08-25
- 0.17.1 — 2019-08-17
- 0.17.0 — 2019-08-16
- 0.16.4 — 2019-07-02
- 0.16.2 — 2019-05-25
- 0.16.1 — 2019-05-24
- 0.16.0 — 2019-05-22
- 0.15.2 — 2019-05-12
- 0.15.1 — 2019-05-12
- 0.11.0 — 2018-06-27
- … 17 more at https://npm.io/package/breakout-api-client/versions

## README

# An API client for the breakout api written in JS

## Usage example
Install the dependency as follows:

`npm install --save breakout-api-client`

And use it like this:

```js
const BreakoutApi = require("breakout-api-client");

const debug = true;
const api = new BreakoutApi("http://localhost:8082", "client_app", "123456789", debug);

async function test() {
    // Perform login for user with email and password
    // A side effect of this operation is that the returned access token
    // is saved in this instance of the class BreakoutApi, so that all following
    // requests are authenticated with the users access_token
    try {
        await api.login("sponsor@example.com", "test");
        const me = await api.getMe();
        console.log(me); // Information about the currently logged in user
    } catch (err) {
        console.log(err.message);
        console.log(err.response.data);
    }
}

test();
```

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