Xompass Client for cloud-api
npm install @xompass/sdk-cloud-api```
npm install @xompass/sdk-cloud-api
Sample Code
`javascript
const sdk = require('@xompass/sdk-cloud-api');
sdk.XompassClient.setBaseURL('https://api.xompass.com');
sdk.XompassClient.setStorage(new sdk.MemoryStorage());
sdk.XompassClient.setDebugMode(false);
main()
async function main() {
await sdk.AdminApi.login({username: '
const assets = await sdk.CustomerApi.getAssets('
fields: ['id', 'name'],
limit: 10,
where: {type: 'ObjectRecognitionCam'},
include: {
relation: 'sensors',
scope: {fields: ['id', 'name']}
}
})
//...
}
``
For more information about loopback filters go to official page
of Loopback