go-yahome

module
v0.0.0-...-84fde5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: MIT

README

go-yahome

  drawing   drawing

lib is under develope test Coverage Status Go Report 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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL