SDK first preview
SDK first preview
Preview runs inside the OpenSDK. It does not call an HTTP playback API. Full bind and authorization steps: Build a mobile app.
Choose Android or iOS
| Platform | Package on Downloads | Component page |
|---|---|---|
| Android | Android OpenSDK and Android subaccount Demo | Android OpenSDK |
| iOS | iOS OpenSDK and iOS subaccount Demo | iOS OpenSDK |
iOS runs on a physical device only, not in the simulator, and needs Xcode 9.0 or later. This page does not claim any other emulator support.
PC OpenSDK is a separate desktop path: Build a desktop app.
Download the demo
Take the current Updated date and Hash from Downloads and verify the archive before you open it. Follow the demo for the bind sequence of each device version.
Server token
Obtain the administrator token on your server with accessToken (https://openapi-[DataCenter].easy4ip.com/openapi/accessToken). Valid for 3 days; refresh on TK1002.
When the app user must not hold the administrator token, create a sub-account and call subAccountToken. iOS init accepts either token; replace [Data Center] in addr with your data-center id. See iOS OpenSDK.
Initialize and preview
- Bind the device. A new device, or a device that just upgraded, may not finish through HTTP
bindDevicealone—use the client SDK and the demo. HTTP entry: Add a device. - After bind, list devices from the server with Device management (
device.detail.*). - Preview with the embedded OpenSDK. Follow the SDK page and the demo; do not call
bindDeviceLivefor in-app preview.
Provisioning, device init, playback, talk, and image decryption stay in the client SDK. Account, device list (other than bind), cloud storage, and alarm queries stay on your server.
