0.1.1 • Published 6 years ago

matlo v0.1.1

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

Matlo-client

Nodejs client for Matlo REST API

Installation

Install via npm

# Latest release
npm install matlo

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

Usage

Authenticate with login/password

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

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.

0.1.1

6 years ago

0.1.0

6 years ago