Websocket Samples
Org Other Devices Sync
Subscribe to OtherDevice sync events
Websocket Endpoint
WS /api-ws/v1/streamSubscribe Command
{
"subscribe": "/orgs/{org_id}/otherdevices/sync"
}Streamed Data Sample
{
"event": "data",
"channel": "/orgs/67970e46-4e12-11e6-9188-0242ac110007/otherdevices/sync",
"data": {
"vendor": "cradlepoint",
"status": "failed",
"text": "Cannot sync devices, please verify API keys under organization setting."
}
}
Definitions
| Name | Type | Description |
|---|---|---|
| event | string | what type of event is received. |
| channel | string | from which channel the data is received. |
| vendor | string | vendor of otherdevices sync event. |
| status | string | status of event e.g done or failed. |
| text | string | provides more information on the event. |