Library for creating great websites and apps with Priority
npm to install the library directly.
bash
npm install priority-web-sdk --save
`
Once the library is installed, require-ing it returns the API object which contains all of the necessary methods.
`javascript
var priority = require('priority-web-sdk');
`
Sample Application
Here's a very minimal application. It shows all of the rows in the CUSTOMERS form.
`javascript
var configuration = {
username: '',
password: '',
url: '',
tabulaini: 'tabula.ini',
language: 3,
company: 'demo'
};
priority.login(configuration)
.then(()=> priority.formStart('CUSTOMERS', null, null, 'demo', 1))
.then(form=> form.getRows(1))
.then(rows=> console.log(rows))
.catch(err=> console.log(err));
``