1.0.7 • Published 5 years ago
skava-lib v1.0.7
SkavaLib
Skava Library SDK
skava-lib
Skava-Lib is a JavaScript library for connecting to Skava Cloud using REST API End Points
Example Usage in React-Native
import { SkavaUtils, SkavaResponse, SkavaError } from 'skava-lib';Invoke login method to login to cloud database
let message = SkavaUtils.userLogin(username, password);Invoke get profile method to retrieve use profile
let message = SkavaUtils.userGetProfile();Invoke logout method to logout of cloud databse
let message = SkavaUtils.userLogout();Invoke product search by barcode method to search catalog for a particular item
let message = SkavaUtils.searchProductByBarcode(barcode);Retrieve server response
let res = JSON.stringify(SkavaResponse.data);
console.log("Skava Response: " + res);Retrieve server error
let err = JSON.stringify(SkavaError.message)
console.log("Skava Error: " + err);