Code Monkey home page Code Monkey logo

moves's Introduction

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:

moves's People

Contributors

ankane avatar pjambet avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.