npm.io
0.1.1 • Published 8 years ago

matlo

Licence
MIT
Version
0.1.1
Deps
3
Size
6 kB
Vulns
1
Weekly
0
Stars
1

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.

Keywords