Chapter    5

Integrating Third-Party Fitness Trackers and Data Using the Fitbit API

Gheorghe Chesler

One would be remiss to discuss health sensors without mentioning the most popular connected motion tracker on the market, the Fitbit. Through its web-based API (application programming interface), Fitbit allows developers to access activity logged from its hardware, as well as related health information from Fitbit’s ecosystem, including meals and weight. This chapter will teach developers how to connect to the API from within their apps, as well as how to retrieve information from it and log new activities.

Introduction to the Fitbit API

The Fitbit devices are health metrics trackers that record detailed minute-by-minute steps, distance, calorie ...

Get Program the Internet of Things with Swift for iOS now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.