miele-go

module
v0.0.0-...-7e695dc Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT

README

Golang Miele 3rd Party API

Go client for the Miele 3rd Party API

Usage

package main

import (
    "fmt"
    "os"

    "github.com/ingmarstein/miele-go/miele"
)

func main() {
    token := os.Getenv("MIELE_AUTH_TOKEN")
    // You may optionally include your own http client
    client := miele.NewClient(nil, token)
    devices, err := client.ListDevices(miele.ListDevicesRequest{})
    if err != nil {
    	panic(err)
    }
    fmt.Println(devices)
}

Directories

Path Synopsis
Package miele implements a client for the Miele 3rd Party API.
Package miele implements a client for the Miele 3rd Party API.

Jump to

Keyboard shortcuts

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