fibery-unofficial

0.2.1 • Public • Published

Fibery API documentation with examples using this client.

Getting started

const Fibery = require('fibery-unofficial');
const fibery = new Fibery({
    host: 'YOUR_ACCOUNT.fibery.io',
    token: 'YOUR_TOKEN'
});

Method-way vs. command-way

This unofficial Node.js client supports two ways of working. Method-way is used in the API documentation:

const users = await fibery.entity.query({
  'q/from': 'fibery/user',
  'q/select': ['fibery/id', 'user/name'],
  'q/limit': 3
});

It is equivalent to command-way:

const usersCommand = fibery.command.queryEntityCmd({
  'q/from': 'fibery/user',
  'q/select': ['fibery/id', 'user/name'],
  'q/limit': 3
});
 
const users = await fibery.command.execute(usersCommand);

The method-way utilizes commands under the hood, but provides a more simple interface.

The command-way removes an abstraction layer, making it closer to the actual API but also less suitable for a one-time use.

Feel free to use any of the ways.

Differences from API

This client makes it easier to:

Examples

Readme

Keywords

Package Sidebar

Install

npm i fibery-unofficial

Weekly Downloads

25

Version

0.2.1

License

MIT

Unpacked Size

24.8 kB

Total Files

11

Last publish

Collaborators

  • antoniokov