This lib helps you to use the basic smart home api from Yandex. You can run a scenario or check the status of devices.
- Lib is under development. If you have any suggestions, please let me know or create an MR. Thanks
- Created for development of Yandex Alice skills using Golang
Yandex api documentation you can find HERE
Add this import line to the file you're working in:
import "github.com/SkurkovPavel/go-yahome/iot"
Create the client as shown in the example
func example(){
config := iot.NewConfig()
config.Token = "ACCESS TOKEN"
cl := iot.NewIotClient(config)
resp, err := cl.GetInfo()
if err != nil {
fmt.Print(err)
}
_ = resp
}