-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.go
28 lines (19 loc) · 777 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2021 To Levan Giguashvili. All rights reserved.
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.
/*Package sensibo is a Go wrapper for the Sensibo API.
This implements the API calls that are listed in https://sensibo.github.io/
in a simple to use Go package that can be imported to any project.
You can run the following simple code to get you started:
package main
import "github.com/odinn1984/go-sensibo"
func main() {
client := sensibo.New("my-api-key")
devices, err := client.GetAllDevices([]string{"*"})
if err != nil {
// Do some error handling
}
// Do something with devices
}
The above example get all of the devices that are configured on your Sensibo account. */
package sensibo