Filament is an unofficial Go wrapper for LIFX's HTTP API.
branch | status |
---|---|
develop |
|
master |
$ go get github.com/panicpanicpanic/filament
In order to access your LIFX devices, you must first have a valid access token. You can visit the LIFX Cloud page to set one up:
Once you have an access token, you use Filament like this:
import(
"github.com/panicpanicpanic/filament"
"github.com/panicpanicpanic/filament/lifx"
)
client := lifx.Client{
AccessToken: "someRandomToken"
}
_, err := filament.SomeMethod(&client)
if err != nil {
fmt.Println("handle your error")
}
All methods are available in this godoc!
Want to contribute? Just fork the repo, make a feature/bug PR and send it over! Just make sure your tests are passing :)
MIT
I'm not affiliated with LIFX, but they are fucking awesome, so you should buy their 💡!