2.1.24 • Published 12 months ago
@apio/sdk v2.1.24
@apio/sdk
NodeJS SDK for Apio IoT Platform.
Installation
npm i @apio/sdkUsage
import Sdk, { Device } from '@apio/sdk'
const sdk = Sdk.create({
uri: 'platform-uri',
apiKey: 'your-api-key',
projectId: 'your-project-id'
})
async function main () {
try {
const devices: Device[] = await sdk.device.findAll()
console.log(devices)
} catch (e) {
console.error(e)
}
}
main()Cache
Sdk support Cache strategy. For enable it set cache property in configuration:
const sdk = Sdk.create({
uri: 'platform-uri',
apiKey: 'your-api-key',
projectId: 'your-project-id'
cache: true // For default configuration. Otherwise: { ttl: number }
})2.1.18
1 year ago
2.1.19
1 year ago
2.1.23
1 year ago
2.1.24
12 months ago
2.1.21
1 year ago
2.1.22
1 year ago
2.1.20
1 year ago
2.1.16
1 year ago
2.1.17
1 year ago
2.1.14
1 year ago
2.1.15
1 year ago
2.1.12
1 year ago
2.1.13
1 year ago
2.1.10
2 years ago
2.1.11
1 year ago
2.1.9
2 years ago
2.1.6
2 years ago
2.1.5
2 years ago
2.1.8
2 years ago
2.1.7
2 years ago
2.1.4
2 years ago
2.1.3
2 years ago
2.1.2
2 years ago
2.1.1
2 years ago
2.1.0
2 years ago
2.0.1
2 years ago