Project

humanapi

0.02
No commit activity in last 3 years
No release in over 3 years
API client for HumanAPI
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

~> 1.0.4
 Project Readme

HumanAPI

A Ruby client to HumanAPI.

Installation

Add this line to your application's Gemfile:

gem 'humanapi'

Usage

First get a user's OAuth token, perhaps through omniauth-humanapi.

You can pass the token through to every API method call, or set it globally:

HumanAPI::Human.token = token

Methods

Here are all the supported API methods. For more information, please see the HumanAPI docs.

HumanAPI::Human.profile
HumanAPI::Human.summary
HumanAPI::Human.all_activity
HumanAPI::Human.activity
HumanAPI::Human.daily_activity
HumanAPI::Human.series_activity
HumanAPI::Human.blood_glucose
HumanAPI::Human.all_blood_glucose
HumanAPI::Human.daily_blood_glucose
HumanAPI::Human.blood_pressure
HumanAPI::Human.all_blood_pressures
HumanAPI::Human.daily_blood_pressure
HumanAPI::Human.bmi
HumanAPI::Human.all_bmis
HumanAPI::Human.daily_bmi
HumanAPI::Human.body_fat
HumanAPI::Human.all_body_fats
HumanAPI::Human.daily_body_fat
HumanAPI::Human.genetic_traits
HumanAPI::Human.heart_rate
HumanAPI::Human.all_heart_rates
HumanAPI::Human.daily_heart_rate
HumanAPI::Human.height
HumanAPI::Human.all_heights
HumanAPI::Human.daily_height
HumanAPI::Human.all_locations
HumanAPI::Human.daily_location
HumanAPI::Human.sleep
HumanAPI::Human.all_sleep
HumanAPI::Human.daily_sleep
HumanAPI::Human.weight
HumanAPI::Human.all_weight
HumanAPI::Human.daily_weight

Contributing