- Rework client to accept existing access tokens.
- Fix argument parsing in
FitbitAPI::Client
to respect fallback values passed to#configure
. - Add
byebug
as development dependency.
- Fix bug regarding optional
params
parsing for GET requests.
- Fix
#activity_logs_list
to allow passing in expected URL params.
- Post install cleanup
- Gem renamed from
fitbyte
tofitbit_api
- Make sure to change
Fitbyte::Client
toFitbitAPI::Client
in your code, no other changes should be necessary.
- Make sure to change
- Rename
#auth_page_link
to#auth_url
- Rename
snake_case
option tosnake_case_keys
- Code cleanup
- Add support for Activity and Heart Rate Intraday Time Series endpoints.
- Add support for weight and fat logging and deletion endpoints.
- Renamed
#weight_goals
and#body_fat_goals
to#weight_goal
and#body_fat_goal
.
- A
refresh_token
option can be passed in to retrieve an existing access token. - A configuration block can now be passed in to FitbitAPI, to allow for the setting of default instance attributes.
- File/code reorganization.
- Add Heart Rate endpoint support. Add support for Time Series endpoints.
- Minor improvements to some helper functions
- Users can now provide either snake_cased or camelCased param attribute keys when POSTing data to Fitbit. Keys are automatically converted to camelCase before a request is sent to Fitbit's API.
- Remove FitStruct objects
- The response's hash keys can now be transformed using the following options:
snake_case
- if set to true, all keys are formatted to snake_casesymbolize_keys
- if set to true, all keys are converted to symbols
- API endpoint support for the following actions:
- Add alarm
- Update alarm
- Delete alarm
- File reorganization
- Set minimum required Ruby version
- Minor testing tweaks for Travis CI
- Expand API endpoint support for the following actions:
- Add activity to favorites
- Retrieve list of activity log entries
- Create/update daily/weekly goals
- Delete activity
- Remove activity from favorites
-
Responses now return FitStruct objects (inherit from OpenStruct).
-
Ability to set default data return format by setting
raw_response
on FitbitAPI::Client instance (defaults to using FitStruct objects). Can be overridden on each API call by specifying theraw
boolean option.
- Default result format for
get
calls now return OpenStruct objects, allowing for more convenient method-like attribute access. Specifyingraw: true
returns original JSON.
- Remove
require 'json'
- MultiJson used for parsing JSON (with symbolized keys)
user_id
is interpolated into resource URLs, removing the hardcoded-
.
- API version in resource URLs is now user settable.
- Scope argument takes both String and Array types.
- Default init values moved to
defaults
hash.
- Initial auth logic setup for Client class.
- Endpoint support added for retrieving Food, Sleep, Water, Activities, Alarms, Body, Devices, Friends, and Users.