0.0.1-alpha.1 • Published 7 years ago

devless-sdk v0.0.1-alpha.1

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

devless-sdk

DevLess-SDK is a module that provides a host of functions for working with data from the DevLess Backend.

Inline docs npm version

Install

npm install devless-sdk --save

Usage

Require and initialize the module with your DevLess URL and Token.

const DevLess = require('devless-sdk');

const dv = new DevLess("DevLess_instance_URL", "DevLess_Token");

And you can now have access to all the methods exposed by the module. They include:

CRUD

Query (read) data from table

dv.queryData(serviceName, tableName, queryParams, callback);

Add data to table

dv.addData(serviceName, tableName, data, callback);

Update data in table

dv.updateData(serviceName, tableName, identifierField, identifierValue, data, callback);

Delete data from table

dv.deleteData(serviceName, tableName, identifierField, identifierValue, callback);

Authentication

For actions including signup and login.

dv.authenticate(action, params, callback);

RPC

dv.rpc(serviceName, action, params, callback);

Note: This readme is a WIP. For more info on parameter definitions, etc, see the DevLess Documentation.