@decipherindustries/kinetic-config-parser
v2.0.5
Published
Kinetic Scientific - DC control server configuration parser
Downloads
4
Readme
MyinT SDK
A software development kit (SDK) for building client applications with the MyinT API. Abstracts away the unpleasantries of dealing with API connectivity.
Installation
For now, installation is done from Git. requires access to the Git repository.
$ npm install [--save] decipherindustries/myint-sdk
Usage
// Import the client
import Client from 'myint-sdk'
// Instantiate a sdk
const sdk = new Client('https://myint.decipher.digital')
// Do things with the REST API
const clues = await sdk.clues.list()
const solutions = await sdk.get('/api/v1/solution')
const createClueResult = await sdk.clues.create({ ... clue data ... })
// Listen to events
sdk.on('connected', () => {
// connected to server
})
sdk.on('disconnected', () => {
// disconnected from server
})
sdk.on('notification', () => {
// server notification
})