October updates
Back once again with more updates this month! The API is welcoming some new joiners after many requests for them, more data is available, and SDKs allow you to get updates on specific data points!
tl; dr:
- WHOOP integration,
- Garmin HRV is available through the API,
- a revamped data subscriptions feature on Terra SDKs! πͺ
- Changelog here
WHOOP integration
What?
We've partnered up with WHOOP in order to provide API access to their data through the Terra API! Your favorite activity, sleep, and health coach is now available through Terra π You can read more about it here!
Why?
Some of us feel WHOOP is 10 steps ahead of the game in terms of insights provided to users & value-add to workouts and daily life π€― We wanted to allow everyone to capitalize on the valuable pool of information available through the WHOOP API in an easy-to-use manner through Terra.
How?
After discussing the partnership extensively with the WHOOP team π΅ οΈββοΈ and planning the release of the integration along their branding guidelines & terms, we planned out the best way to get data integrated from WHOOP into your apps, and normalized it accordingly. WHOOP is special in the way they organize data in "cycles" instead of days, so we had to work around that in order to include it into our API π· ββοΈ
Garmin HRV data
What?
More and more wearable companies seem to be unlocking data for use by the general public through API integrations! To this effect, Garmin has followed along and made HRV data available first in their app, and now through their public-facing API. Read more extensively about it on our dedicated blog post! π
Why?
HRV data is being used more and more as devs find ways to extract valuable information from it, empowering users to know more about their recovery, stress, and general health thanks to it. π¨ ββοΈ Now that Garmin has opened up, we felt like we needed to get this out to all our users to build on top of!
How?
Our data models already include HRV, so we went ahead and created the mapping from Garmin's new model to ours, so that this would be included in the exact same format as every other integration we have available. This means nothing needs to change on your end - you just get more data! Pretty neat if you ask me π
Terra SDK subscriptions
What?
The Terra SDKs now allow you to subscribe to very specific data types within the app! Get updated on steps, calories, and more whenever apple health or google fit receive an update on any of these π²
Why?
Previously, the Terra SDK would update you by passing over a whole Terra payload with every field contained in e.g. daily. This was slow, cumbersome, and difficult to maintain π (as most of the data provided was not processed in the frontend, so this was wasteful)
How?
Using Apple healthkit's background delivery functionality on iOS, and Google Fit's update listeners on Android, we re-wrote the SDKs to be able to make full use of these and provide your app with the latest information for any of the data types you need.