Tandarb
This is a ruby wrapper for Tanda API.
Installation
To install, just add tandarb
to your Gemfile.
Usage
Generate a token in your My token page.
Users
# Fetch all users
user_client = Tandarb::User.new(token)
users = user_client.all
# Create new user
user_client = Tandarb::User.new(token)
user = user_client.create(body)
Datastreams
# Create new datastream
datastream_client = Tandarb::Datastreams.new(token)
datastream = datastream_client.create(body)
Store Stats
# Create new storestats
storestats_client = Tandarb::Storestats.new(token)
storestat = storestats_client.create(body, datastream_id)
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/iamarmanjon/tandarb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the Tandarb project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.