A gem for communicating with the Suunto movescount API.
Add this line to your application's Gemfile:
gem 'movescount'And then execute:
$ bundle
Or install it yourself as:
$ gem install movescount
You can use a configure block to setup the gem and provide the app_key
Movescount.configure do |config|
config.app_key = 'TestAppKey'
config.api_uri = 'https://uiservices.movescount.com'
endIt all starts with a movescount member object
Movescount::Member.new(email: '[email protected]', userkey: 'ABCDEFGHIJKLMNO')This userkey is an extra check if the requests are from the same origin. When you change the userkey, the user has to reconfirm the integration in movescount. So make sure you save this (user specific) key.
TODO: More and don't forget the nice rails concerns
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/StefSchenkelaars/movescount.
The gem is available as open source under the terms of the MIT License.