Skip to content

SkurkovPavel/go-yahome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-yahome

  drawing   drawing

lib is under develope test Coverage Status License

About

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 IOT api client

Yandex api documentation you can find HERE

Quick Start

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
}

Releases

No releases published

Packages

No packages published