1.5.5 • Published 1 year ago

@xompass/sdk-cloud-api v1.5.5

Weekly downloads
8
License
MIT
Repository
-
Last release
1 year ago

Xompass CloudApi SDK

Usage

npm install @xompass/sdk-cloud-api

Sample Code

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: '<my_username>', password: '<my_password>'});
  const assets = await sdk.CustomerApi.getAssets('<customerId>', { // A loopback filter
    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

1.5.5

1 year ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.2.2

3 years ago

1.3.0

2 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago