1.4.0 • Published 3 years ago

diyapis v1.4.0

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

diyapis

NPM CircleCI

Client helper library for diyapis.com - the Do-it-Yourself API creator.

Installation

npm install diyapis

Using in your client-side code:

import { createClient } from 'diyapis';

const client = createClient({appName: 'test'});

//call one of your API functions
client.apiFetch('/myTest')
  .then((result) => {
    console.log(result);
  });

// connect to the diyapis mqtt broker after authenticating to the API
client.connect();

// listen for mqtt object messages that encoded as json 
client.on('json', (topic, msg) => {
  console.log(msg);
});
1.4.0

3 years ago

1.2.0

4 years ago

1.3.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago