Skip to content

niklasvincent/jawbone-up-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby wrapper for the unofficial Jawbone UP API, updated using new unofficial documentation.

Work in progress.

Find out your token:

s = Jawbone::Session.new "you@youremail.com", "yourpassword"
s.token # puts your Jawbone UP token

If you already have the token, you can create a session like so:

s = Jawbone::Session.new_from_token "your_token"

Your feed in JSON format:

s = Jawbone::Session.new "you@youremail.com", "yourpassword"
s.feed

Average time it takes you to fall asleep:

s.average_time_to_sleep
=> 650.7692307692307

Daily Summary:

summary = Jawbone::DailySummary.new(s.daily_summary "2013-07-11")

$> summary.steps
=> 13007

$> summary.sleep_quality
=> 83

$> summary.kilometers
=> 16.314

$> summary.calories
=> 1903.30

About

Ruby wrapper for the unofficial Jawbone UP API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%