- Rework client to accept existing access tokens.
- Fix argument parsing in
FitbitAPI::Clientto respect fallback values passed to#configure. - Add
byebugas development dependency.
- Fix bug regarding optional
paramsparsing for GET requests.
- Fix
#activity_logs_listto allow passing in expected URL params.
- Post install cleanup
- Gem renamed from
fitbytetofitbit_api- Make sure to change
Fitbyte::ClienttoFitbitAPI::Clientin your code, no other changes should be necessary.
- Make sure to change
- Rename
#auth_page_linkto#auth_url - Rename
snake_caseoption 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_goalsand#body_fat_goalsto#weight_goaland#body_fat_goal.
- A
refresh_tokenoption 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_responseon FitbitAPI::Client instance (defaults to using FitStruct objects). Can be overridden on each API call by specifying therawboolean option.
- Default result format for
getcalls now return OpenStruct objects, allowing for more convenient method-like attribute access. Specifyingraw: truereturns original JSON.
- Remove
require 'json'
- MultiJson used for parsing JSON (with symbolized keys)
user_idis 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
defaultshash.
- Initial auth logic setup for Client class.
- Endpoint support added for retrieving Food, Sleep, Water, Activities, Alarms, Body, Devices, Friends, and Users.