Skip to content

Integrate an SDK

Move to an SDK after the curl or Bruno verification succeeds. Keep API Client credentials in your backend and reuse the verified authentication and device-query flow.

Available SDKs

The SDKs are currently distributed as source code in the WLTE OpenAPI SDK repository.

LanguageDirectory
TypeScriptsdk/typescript
Pythonsdk/python
Gosdk/go
bash
git clone https://github.com/svnwi/wlte-openapi-sdk.git

Current coverage includes authentication, device queries, device type definitions, relay control, RS485, device configuration, and command-result lookup.

TypeScript

bash
cd wlte-openapi-sdk/sdk/typescript
cp .env.example .env
npm install
npm run example:list-devices
npm run example:list-profiles

Python

bash
cd wlte-openapi-sdk
cp sdk/python/.env.example sdk/python/.env
python3 sdk/python/examples/list_devices.py
python3 sdk/python/examples/list_profiles.py

Go

bash
cd wlte-openapi-sdk/sdk/go
cp .env.example .env
go run ./examples/list_devices
go run ./examples/list_profiles

Production Checklist

  • Load clientId and clientSecret from server-side secret storage.
  • Cache access tokens until shortly before expiresIn.
  • Handle the HTTP status and response code; do not branch on message.
  • Respect Retry-After and use bounded retries.
  • Record requestId for troubleshooting without logging credentials or tokens.
  • Use REST for baseline synchronization and WebSocket for continuous events when required.

Next Steps

Docs buildVersion v1.3.6-20260720-180213-70
Copyright © 2026 WLTE