# Brighterx [![Build Status](https://semaphoreci.com/api/v1/techgaun/brighterx/branches/master/badge.svg)](https://semaphoreci.com/techgaun/brighterx) [![Coverage Status](https://coveralls.io/repos/github/Brightergy/brighterx/badge.svg?branch=master)](https://coveralls.io/github/Brightergy/brighterx?branch=master)
> 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
```elixir
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"})
```