Project

moves

0.02
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Ruby client for Moves
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

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: