Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.77 KB

README.md

File metadata and controls

58 lines (41 loc) · 1.77 KB

Filament Go Report Card

Filament is an unofficial Go wrapper for LIFX's HTTP API.

Build Status

branch status
develop CircleCI
master CircleCI

Installation

$ go get github.com/panicpanicpanic/filament

How To Use

Authentication

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:

Using your LIFX Access Token in Filament

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")
}

Available Methods

All methods are available in this godoc!

Contributing

Want to contribute? Just fork the repo, make a feature/bug PR and send it over! Just make sure your tests are passing :)

License

MIT

I'm not affiliated with LIFX, but they are fucking awesome, so you should buy their 💡!