Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:

About

Ruby client for Moves

Resources

License

Packages

No packages published

Languages