Ruby client for Moves
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
CHANGELOG.md
Gemfile
LICENSE.txt
README.md
Rakefile
moves.gemspec

README.md

Moves

Ruby client for Moves

Get Started

Add this line to your application’s Gemfile:

gem "moves"

Create a client. To obtain an access token, we recommend the omniauth-moves gem.

moves = Moves::Client.new(access_token)

Get profile

moves.profile

Get daily summary

moves.daily_summary                  # current day
moves.daily_summary("2013-06-20")    # any day
moves.daily_summary("2013-W25")      # week
moves.daily_summary("2013-06")       # month
moves.daily_summary(:from => "2013-06-20", :to => "2013-06-23") # max 31 days
moves.daily_summary(:pastDays => 31) # max 31 days
moves.daily_summary(:updatedSince => 3.days.ago)

# also supports Time, Date, and DateTime objects
moves.daily_summary(Time.now)
moves.daily_summary(Date.today)
moves.daily_summary(DateTime.now)
moves.daily_summary((Date.today - 1)..Date.today)

Fun fact: Methods below support the same parameters as above

Get daily activities

moves.daily_activities

Get daily places

moves.daily_places

Get daily storyline

moves.daily_storyline

Get daily storyline with track points

moves.daily_storyline(:trackPoints => true)

Get activity list

moves.activity_list

History

View the changelog

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help: