FadssLite
A Ruby gem for communicating with the FADSS REST API
Installation
Add this line to your application's Gemfile:
gem 'fadss_lite'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fadss_lite
Usage
require 'fadss_lite'
api = FadssLite::Api.new("apikey")
Data Register
records = [
{
device: "AAA-BBB-0000000000",
data: [
at: "20140930013000000",
temp1: "23.4",
temp2: "24.1"
]
}
]
api.post_data(records)
Contributing
- Fork it ( https://github.com/[my-github-username]/fadss_lite/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request