Brighterx Build StatusCoverage Status

Elixir client for BrighterLink API

Installation

Add brighterx to your list of dependencies in mix.exs:

    def deps do
      [{:brighterx, github: "Brightergy/brighterx"}]
    end

Usage

You can use the functions in Brighterx.Api for making requests to RESTful api of BrighterLink.

Examples

Brighterx.Api.create(Brighterx.Resources.Device, %{name: "Test Thermostat", identifier: "00:01", facility_id: 1, type: "thermostat"})

Brighterx.Api.find(Brighterx.Resources.Company, [params: %{name: "Brightergy"}])

Brighterx.Api.update(Brighterx.Resources.Device, 1, %{name: "7th floor south"})