Moves
Ruby client for Moves
Usage
Create a client.
client = Moves::Client.new(access_token)
Get profile
client.profile
Get daily summary
client.daily_summary # current day
client.daily_summary("2013-06-20") # any day
client.daily_summary("2013-W25") # week
client.daily_summary("2013-06") # month
client.daily_summary(:from => "2013-06-20", :to => "2013-06-23") # max 31 days
Get daily activities
client.daily_activities # current day
client.daily_activities("2013-06-20") # any day
client.daily_activities("2013-W25") # week
client.daily_activities(:from => "2013-06-20", :to => "2013-06-23") # max 7 days
Get daily places
client.daily_places # current day
client.daily_places("2013-06-20") # any day
client.daily_places("2013-W25") # week
client.daily_places(:from => "2013-06-20", :to => "2013-06-23") # max 7 days
Get daily storyline
client.daily_storyline # current day
client.daily_storyline("2013-06-20") # any day
client.daily_storyline("2013-W25") # week
client.daily_storyline(:from => "2013-06-20", :to => "2013-06-23") # max 7 days
Get daily storyline with track points
client.daily_storyline(:trackPoints => true) # current day
client.daily_storyline("2013-06-20", :trackPoints => true) # any day
Installation
Add this line to your application's Gemfile:
gem "moves"
And then execute:
bundle
Contributing
- Fork it
- 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