2.1.24 • Published 5 months ago
@apio/sdk v2.1.24
@apio/sdk
NodeJS SDK for Apio IoT Platform.
Installation
npm i @apio/sdk
Usage
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
8 months ago
2.1.19
8 months ago
2.1.23
6 months ago
2.1.24
5 months ago
2.1.21
8 months ago
2.1.22
6 months ago
2.1.20
8 months ago
2.1.16
8 months ago
2.1.17
8 months ago
2.1.14
9 months ago
2.1.15
9 months ago
2.1.12
11 months ago
2.1.13
10 months ago
2.1.10
12 months ago
2.1.11
11 months ago
2.1.9
12 months ago
2.1.6
1 year ago
2.1.5
1 year ago
2.1.8
1 year ago
2.1.7
1 year ago
2.1.4
1 year ago
2.1.3
1 year ago
2.1.2
1 year ago
2.1.1
1 year ago
2.1.0
1 year ago
2.0.1
1 year ago