Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevicesSchema ¶
type DevicesSchema struct { StatusCode int `json:"statusCode"` Body struct { DeviceList []struct { DeviceId string `json:"deviceId"` DeviceName string `json:"deviceName"` DeviceType string `json:"deviceType"` EnableCloudService bool `json:"enableCloudService"` HubDeviceId string `json:"hubDeviceId"` } `json:"deviceList"` InfraredRemoteList []struct { DeviceId string `json:"deviceId"` DeviceName string `json:"deviceName"` RemoteType string `json:"remoteType"` HubDeviceId string `json:"hubDeviceId"` } `json:"infraredRemoteList"` } `json:"body"` Message string `json:"message"` }
func FetchDevices ¶
func FetchDevices(token string, secret string) (*DevicesSchema, error)
Click to show internal directories.
Click to hide internal directories.