Gem for handling xively devices's credentials.
gem 'xively_api_client'
XIVELY_USER
XIVELY_PASS
XIVELY_INSTANCE
XIVELY_DOMAIN
client = Xively::ApiClient.new # will use env variables
other_client = Xively::ApiClient.new user: "app_username", pass: "app_password", domain: "abc", instance: "123"
client.devices
client.device "serial_id_here"
client.create_device "serial_id", batch_id: "1234", queues: [ "readings", "input", "last_will" ]
client.destroy "serial_id"
- Fork it ( http://github.com//xively_api_client/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 new Pull Request