This gem wraps the Nuwe API.
Nuwe is your digital wellness system for a better life. It understands the exercise you do, the food you eat, and the biometric data you create. Nuwe can intelligently combine them all into a single score and give you real-time decision-making support for your lifestyle. Life with Nuwe puts you in charge of your health and wellness.
Add this line to your application's Gemfile:
gem 'nuwe'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nuwe
Configure the gem with your API token:
Nuwe.configure do |c|
c.token = "8f399c4c-8bbf-4272-938e-f3e4123d194f"
end
For Rails, you can put the above content in config/initializers/nuwe.rb
.
Nuwe::Auth.create "[email protected]", "supersecret"
Returns the user on success, and raises an error on failure.
- Fork it ( https://github.com/[my-github-username]/nuwe/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