0.9.0 • Published 7 years ago
directual v0.9.0
directual-sdk-js
The Directual Web Library serves as the base JavaScript library for Directual based projects.
https://directual.com/
Support
- Explorer 11
- Chrome 43+
- Node 8.9+
Install
npm install directual
Usage in Node
const directual = require('directual');
directual.api.defaults.baseURL = 'https://directual.com/good/api/v3';
directual.api.defaults.params = {
appID: 'xxxxx',
appSecret: 'xxxxx',
};
directual.api
.structure('xxxxx')
.search({
filters: [
{
field: 'id',
value: 1,
exp: '==',
},
],
})
.then((response) => {
console.log(response.result.list);
});