# matlo

> Nodejs client for Matlo REST API

Latest version **0.1.1** (published 2018-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install matlo
pnpm add matlo
yarn add matlo
bun add matlo
```

## 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.1.1 |
| Published | 2018-04-13 |
| First published | 2018-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Matlo-dev |
| Maintainers | aileo |
| Keywords | Matlo, rest-client |

## Links

- npm: https://www.npmjs.com/package/matlo
- Repository: https://github.com/Matlo-dev/matlo-client
- Homepage: https://github.com/Matlo-dev/matlo-client#readme
- Issues: https://github.com/Matlo-dev/matlo-client/issues
- npm.io page: https://npm.io/package/matlo

## Dependencies (3)

- [async](https://npm.io/package/async.md) ^2.0.0
- [superagent](https://npm.io/package/superagent.md) ^2.1.0
- [djax-client](https://npm.io/package/djax-client.md) ^0.2.1

## Recent versions

- 0.1.1 (latest) — 2018-04-13
- 0.1.0 — 2018-04-13

## README

# Matlo-client

## Nodejs client for Matlo REST API

### Installation

Install via npm

```bash
# Latest release
npm install matlo

# Development version
npm install git+https://github.com/matlo-dev/matlo-client.git
```

### Usage

#### Authenticate with login/password

```js
const matlo = require('matlo-client');

matlo.clientFromUserCredentials(
  {
    email: 'foo@bar.com',
    password: 'foobar',
    domain: 'cloud.matlo.com',
  },
  (error, client) => {
    // DO WHATEVER YOU WANT
  }
);
```

#### Authenticate with token

```js
const matlo = require('matlo-client');

matlo.clientFromToken(
  {
    token: 'some valid json web token',
    domain: 'cloud.matlo.com',
  },
  (error, client) => {
    // DO WHATEVER YOU WANT
  }
);
```

#### Implemented methods

* user
  * get
  * update
  * createDashboard
* dashboard
  * get
  * update
  * delete
  * setUserRights
* metadata
  * set
  * update
* data
  * send
  * delete

Methods are implemented as the Matlo dev team need them.

### Contributions

Issues and pull requests are welcome.

### License

Matlo-client is under [MIT license](./LICENSE).

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